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
-
#dependencies ⇒ Container
Dependencies injected from RackContainer.
Instance Method Details
#dependencies ⇒ Container
Returns dependencies injected from RackContainer.
8 9 10 |
# File 'lib/payload/controller.rb', line 8 def dependencies request.env[:dependencies] end |