Module: ActiveComponent::Context
- Defined in:
- lib/active_component/context.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
40 41 42 |
# File 'lib/active_component/context.rb', line 40 def self.included(base) base.before_filter(:get_context) end |
Instance Method Details
#get_context ⇒ Object
44 45 46 |
# File 'lib/active_component/context.rb', line 44 def get_context ActiveComponent.set_controller(self) end |