module SimpleController::Base::Context

Attributes

context[R]

Public Instance Methods

call(action_name, params={}, context={}) click to toggle source
Calls superclass method
# 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) click to toggle source
Calls superclass method
# File lib/simple_controller/base/context.rb, line 16
def call_action(*args)
  post_process super, context.processors || []
end

Protected Instance Methods

post_process(output, processors) click to toggle source
# File lib/simple_controller/base/context.rb, line 22
def post_process(output, processors)
  output
end