Module: SimpleController::Base::Context
- Extended by:
- ActiveSupport::Concern
- Included in:
- SimpleController::Base
- Defined in:
- lib/simple_controller/base/context.rb
Instance Method Summary collapse
Instance Method Details
#call(action_name, params = {}, context = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/simple_controller/base/context.rb', line 10 def call(action_name, params={}, context={}) @context ||= OpenStruct.new context super(action_name, params) end |
#call_action(*args) ⇒ Object
16 17 18 |
# File 'lib/simple_controller/base/context.rb', line 16 def call_action(*args) post_process super, context.processors || [] end |