Method: Kaminari::ConfigurationMethods::ClassMethods#paginates_per

Defined in:
lib/kaminari/models/configuration_methods.rb

#paginates_per(val) ⇒ Object

Overrides the default per_page value per model

class Article < ActiveRecord::Base
  paginates_per 10
end


13
14
15
# File 'lib/kaminari/models/configuration_methods.rb', line 13

def paginates_per(val)
  @_default_per_page = val
end