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

5 commits

Author SHA1 Message Date
Akira Matsuda
575a0b303b "paginates_per" is a declarative DSL to set default per_page value for each model 2011-02-12 01:04:25 +09:00
Akira Matsuda
e692254805 fixes #4 works on AR 3.0.0 and 3.0.1 now
this was caused by an AR's bug that offset was not defined on AR::Base < 3.0.2
see: https://rails.lighthouseapp.com/projects/8994/tickets/5688
2011-02-11 20:30:28 +09:00
Akira Matsuda
8036619ae6 default PER_PAGE to 25 2011-02-06 20:11:45 +09:00
Akira Matsuda
5b87a4b18f works on AR 3.0 now!
On AR 3.0, @inheritable_attributes is still nil when "inherited" in some reason.
So, this is a workaround that copies the values from the parent class.
2011-02-05 23:46:23 +09:00
Akira Matsuda
bfa1449f16 implement AR scopes 2011-02-05 23:45:49 +09:00