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

include PageScopeMethods in PluckyCriteriaMethods

This commit is contained in:
Akira Matsuda 2012-09-03 01:24:18 +09:00
parent 296d84cfb7
commit 7f9be1a935
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,6 @@ module Kaminari
require 'kaminari/models/mongo_mapper_extension'
::MongoMapper::Document.send :include, Kaminari::MongoMapperExtension::Document
::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
::Plucky::Query.send :include, Kaminari::PageScopeMethods
end
require 'kaminari/models/array_extension'

View file

@ -1,5 +1,7 @@
module Kaminari
module PluckyCriteriaMethods
include Kaminari::PageScopeMethods
def limit_value #:nodoc:
options[:limit]
end