Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/sixarm_ruby_action_controller_mock.rb
Constant Summary collapse
- RAILS_ROOT =
''
Instance Attribute Summary collapse
-
#filter_chain ⇒ Object
Returns the value of attribute filter_chain.
Instance Method Summary collapse
- #append_after_filter(*filters, &b) ⇒ Object (also: #after_filter)
- #append_before_filter(*filters, &b) ⇒ Object (also: #before_filter)
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
14 15 16 |
# File 'lib/sixarm_ruby_action_controller_mock.rb', line 14 def initialize @filter_chain=[] end |
Instance Attribute Details
#filter_chain ⇒ Object
Returns the value of attribute filter_chain.
12 13 14 |
# File 'lib/sixarm_ruby_action_controller_mock.rb', line 12 def filter_chain @filter_chain end |
Instance Method Details
#append_after_filter(*filters, &b) ⇒ Object Also known as: after_filter
22 23 24 |
# File 'lib/sixarm_ruby_action_controller_mock.rb', line 22 def append_after_filter(*filters,&b) @filter_chain += [*filters] end |
#append_before_filter(*filters, &b) ⇒ Object Also known as: before_filter
18 19 20 |
# File 'lib/sixarm_ruby_action_controller_mock.rb', line 18 def append_before_filter(*filters,&b) @filter_chain += [*filters] end |