Class: Riot::Gear::RiotPartyMiddleware

Inherits:
ContextMiddleware
  • Object
show all
Defined in:
lib/riot/gear/middleware/riotparty.rb

Overview

bound to another context.

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object

Prepares the context for HTTParty support.

Parameters:

  • context (Riot::Context)

    the context to prepare



14
15
16
17
18
19
20
# File 'lib/riot/gear/middleware/riotparty.rb', line 14

def call(context)
  setup_faux_class(context)
  setup_helpers(context)
  proxy_action_methods(context)
  proxy_httparty_hookups(context)
  middleware.call(context)
end