Module: SteelWheel::Composition
- Included in:
- Handler
- Defined in:
- lib/steel_wheel/composition.rb
Overview
Provides host–guest association helpers for ActionForm components.
When included, it exposes host_object and host_association_name accessors
and delegates host_* method calls to the associated host via method_missing.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 |
# File 'lib/steel_wheel/composition.rb', line 8 def self.included(base) base.attr_accessor :owner base.include(InstanceMethods) base.extend(ClassMethods) end |