Module: Payload::Controller

Defined in:
lib/payload/controller.rb

Overview

Mixin to provide access to a Container.

Include this mixin to access dependencies in controllers. The Container will be injected using RackContainer.

Instance Method Summary collapse

Instance Method Details

#dependenciesContainer

Returns dependencies injected from RackContainer.

Returns:



8
9
10
# File 'lib/payload/controller.rb', line 8

def dependencies
  request.env[:dependencies]
end