Module: Mincer::Processors::Pagination::Options::ClassMethods
- Defined in:
- lib/mincer/processors/pagination/processor.rb
Instance Method Summary collapse
Instance Method Details
#default_per_page ⇒ Object
49 50 51 |
# File 'lib/mincer/processors/pagination/processor.rb', line 49 def default_per_page @default_per_page end |
#paginate_defaults(options = {}) ⇒ Object
45 46 47 |
# File 'lib/mincer/processors/pagination/processor.rb', line 45 def paginate_defaults( = {}) @default_per_page = [:per_page] if [:per_page] end |
#skip_pagination! ⇒ Object
41 42 43 |
# File 'lib/mincer/processors/pagination/processor.rb', line 41 def skip_pagination! active_processors.delete(Mincer::Processors::Pagination::Processor) end |