Class: ActionController::Filters::ClassMethods::BeforeFilterProxy
- Inherits:
-
FilterProxy
- Object
- Filter
- FilterProxy
- ActionController::Filters::ClassMethods::BeforeFilterProxy
- Defined in:
- lib/action_controller/filters.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Filter
#excluded_actions, #filter, #included_actions
Instance Method Summary collapse
Methods inherited from FilterProxy
Methods inherited from Filter
#after?, #around?, #before?, #initialize
Constructor Details
This class inherits a constructor from ActionController::Filters::ClassMethods::Filter
Instance Method Details
#call(controller) ⇒ Object
447 448 449 |
# File 'lib/action_controller/filters.rb', line 447 def call(controller) yield unless run(controller) end |
#run(controller) ⇒ Object
440 441 442 443 444 445 |
# File 'lib/action_controller/filters.rb', line 440 def run(controller) # only filters returning false are halted. if false == @filter.call(controller) controller.send :halt_filter_chain, @filter, :returned_false end end |
#type ⇒ Object
436 437 438 |
# File 'lib/action_controller/filters.rb', line 436 def type :before end |