Method: Context::Controller#extend_context
- Defined in:
- lib/context/controller.rb
#extend_context(context, **args) ⇒ Object
7 8 9 10 |
# File 'lib/context/controller.rb', line 7 def extend_context(context, **args) context_class = "#{context}Context".constantize @__context = context_class.wrap(@__context, **args) end |