Module: DataMapper::Is::Pageable
- Defined in:
- lib/dm-is-pageable/is/pageable.rb,
lib/dm-is-pageable/is/class_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#is_pageable(opts = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/dm-is-pageable/is/pageable.rb', line 7 def is_pageable(opts = {}) class_variable_set(:@@dm_is_pageable_options, {}) extend ClassMethods [:per_page] = opts.delete(:per_page) || 10 [:dm_options] = opts end |