popular_by_* is missing status <> 'deleted' check.
popular_by_* is missing status <> 'deleted' check.

Also updated to rails 3 syntax.

--HG--
branch : 3.2.0-release

moebooru/moebooru,euank/moebooru-thin,moebooru/moebooru,nanaya/moebooru,nanaya/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,moebooru/moebooru,euank/moebooru-thin,euank/moebooru-thin,nanaya/moebooru,euank/moebooru-thin,moebooru/moebooru,nanaya/moebooru