move query to model scope
Merge pull request #301 from DonutWorks/refactoring/to-notice-user-page

#300 move query to model scope