replace scope with callable object

- in order to prepare for rails4 migration
Merge pull request #288 from szetobo/update_scope

replace scope with callable object