Module: PushType::Filterable::ClassMethods

Defined in:
app/controllers/concerns/push_type/filterable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filter_scopeObject (readonly)

Returns the value of attribute filter_scope.



58
59
60
# File 'app/controllers/concerns/push_type/filterable.rb', line 58

def filter_scope
  @filter_scope
end

Instance Method Details

#hooks_for(sym, opts) ⇒ Object



60
61
62
63
64
# File 'app/controllers/concerns/push_type/filterable.rb', line 60

def hooks_for(sym, opts)
  @filter_scope = sym
  prepend_before_action :before_load_filters, opts
  around_action :around_action_filters, opts
end