Module: BootstrapPager::DataMapperExtension::Model

Includes:
ConfigurationMethods::ClassMethods, Paginatable
Defined in:
lib/bootstrap_pager/models/data_mapper_extension.rb

Instance Method Summary collapse

Methods included from ConfigurationMethods::ClassMethods

#default_per_page, #max_pages, #max_pages_per, #max_paginates_per, #max_per_page, #paginates_per

Instance Method Details

#limit(val) ⇒ Object


39
40
41
# File 'lib/bootstrap_pager/models/data_mapper_extension.rb', line 39

def limit(val)
  all(:limit => val)
end

#offset(val) ⇒ Object


43
44
45
# File 'lib/bootstrap_pager/models/data_mapper_extension.rb', line 43

def offset(val)
  all(:offset => val)
end