Module: Cms::Behaviors::Pagination

Defined in:
lib/cms/behaviors/pagination.rb

Defined Under Namespace

Modules: ClassMethods Classes: Collection, InvalidPage

Class Method Summary collapse

Class Method Details

.included(model_class) ⇒ Object



5
6
7
8
9
10
# File 'lib/cms/behaviors/pagination.rb', line 5

def self.included(model_class)
  model_class.extend(ClassMethods)
  class << model_class
    define_method(:default_per_page) { 15 }
  end
end