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

4 commits

Author SHA1 Message Date
Leonard Chin
6e614149d1 Use Proc.new instead of lambda for scope_options.
lambda is strict about block parameters in 1.9.2,
so we might as well just use Proc.new.
2011-02-20 06:49:55 +09:00
Leonard Chin
e3b8db5876 Fixes Ruby 1.9.2 compatibility of page scope.
In Ruby 1.9.2, syntax for optional block parameters
is available, but behaviour for missing block parameters
also changed. When no arguments are provided to Model.page,
"ArgumentError: wrong number of arguments (1 for 0)" is raised.

This fix is an ugly workaround that is compatible with both
1.8 and 1.9.
2011-02-19 20:57:32 +09:00
Akira Matsuda
4488137230 move DEFAULT_PER_PAGE to ::Kaminari module 2011-02-18 14:52:17 +09:00
Akira Matsuda
3c567d246b avoid possible namespace collision 2011-02-18 08:16:56 +09:00
Renamed from lib/kaminari/active_record.rb (Browse further)