Module: Mincer::Processors::Pagination::Options::ClassMethods

Defined in:
lib/mincer/processors/pagination/processor.rb

Instance Method Summary collapse

Instance Method Details

#default_per_pageObject



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(options = {})
  @default_per_page = options[:per_page] if options[: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