Module: PufferPages::Extensions::Pagenator
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/puffer_pages/extensions/pagenator.rb
Overview
There is no error in module name
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#_normalize_options(options) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/puffer_pages/extensions/pagenator.rb', line 25 def super if [:puffer_page] || ([:puffer_page] != false && _puffer_pages_action?) scope = [:puffer_scope].presence || [:scope].presence page = .values_at(:puffer_page, :partial, :action, :file).delete_if(&:blank?).first [:puffer_page] = _puffer_pages_template(page, scope) [:layout] = 'puffer_page' end end |