Module: PufferPages::Extensions::Pagenator::ClassMethods
- Defined in:
- lib/puffer_pages/extensions/pagenator.rb
Instance Method Summary collapse
Instance Method Details
#inherited(klass) ⇒ Object
12 13 14 15 |
# File 'lib/puffer_pages/extensions/pagenator.rb', line 12 def inherited(klass) super klass. = .dup end |
#puffer_pages(options = {}) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/puffer_pages/extensions/pagenator.rb', line 17 def puffer_pages = {} [:pagenated] = true [:only] = Array.wrap([:only]).map(&:to_s).presence [:except] = Array.wrap([:except]).map(&:to_s).presence [:scope] = [:scope] end |