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:
parent
296d84cfb7
commit
7f9be1a935
2 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,6 @@ module Kaminari
|
||||||
require 'kaminari/models/mongo_mapper_extension'
|
require 'kaminari/models/mongo_mapper_extension'
|
||||||
::MongoMapper::Document.send :include, Kaminari::MongoMapperExtension::Document
|
::MongoMapper::Document.send :include, Kaminari::MongoMapperExtension::Document
|
||||||
::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
|
::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
|
||||||
::Plucky::Query.send :include, Kaminari::PageScopeMethods
|
|
||||||
end
|
end
|
||||||
require 'kaminari/models/array_extension'
|
require 'kaminari/models/array_extension'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
module Kaminari
|
module Kaminari
|
||||||
module PluckyCriteriaMethods
|
module PluckyCriteriaMethods
|
||||||
|
include Kaminari::PageScopeMethods
|
||||||
|
|
||||||
def limit_value #:nodoc:
|
def limit_value #:nodoc:
|
||||||
options[:limit]
|
options[:limit]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue