Class: RiotRails::ActionControllerMiddleware

Inherits:
Riot::ContextMiddleware
  • Object
show all
Defined in:
lib/riot/action_controller/context_middleware.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) call(context)



5
6
7
8
9
# File 'lib/riot/action_controller/context_middleware.rb', line 5

def call(context)
  setup_situation(context) if handle?(context.description)
  setup_context_macros(context) if nested_handle?(context)
  middleware.call(context)
end