1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
kaminari--kaminari/spec/models/active_record
Yuki Nishijima 8c0b9d5d1a Define page method when a AR class is defined
Commit 92052eedf0 looked good at the beginning. However, that causes a bug that kaminari's page_method_name config has no effect since the pagination method will be defined when `lib/kaminari/models/active_record_model_extension.rb` is loaded.

Define that 'page' method when an AR class is actually defined so we will be able to change the name of the method properly. Fixes #481
2013-12-02 05:21:49 +09:00
..
active_record_relation_methods_spec.rb Revert "count + distinct: true won't work under AR 3.0" 2013-11-10 06:28:08 +09:00
scopes_spec.rb Define page method when a AR class is defined 2013-12-02 05:21:49 +09:00