1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Akira Matsuda
60a91a9667 digging a directory and moving files into it makes me feel like being Lode Runner... 2011-02-21 03:23:14 +09:00
Leonard Chin
0132b30a73 Refactor to extract common code from extensions.
Uses ActiveSupport::Concern to control the addition of methods.
The Kaminari public API (scope DSL, class methods for config)
was extracted to PageScopeMethods and ConfigurationMethods.
Shims to abstract the difference between Mongoid and ActiveRecord
were extracted to MongoidCriteriaMethods and ActiveRecordRelationMethods
respectively.

Also moved definition of common constants up to the railtie.
2011-02-20 13:04:18 +09:00