Module: Flip::ControllerFilters
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/flip/controller_filters.rb
Overview
ControllerFilters is a name that refers to the fact that Rails before_action and after_action used to be before_filter and after_filter.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#flip_feature_disabled(key) ⇒ Object
19 20 21 22 |
# File 'lib/flip/controller_filters.rb', line 19 def flip_feature_disabled key redirect_to root_path # raise Flip::Forbidden.new(key) end |