Fixed a bug that paginates_per does not work with subclasses on mongoid
Merge pull request #634 from kouyaf77/bugfix

Fixed a bug where paginates_per does not work with subclasses on mongoid
Remove #define_scope module function
Test against Rails 4.2 RC3