Module: MultipleTableInheritance::Child::Base::DelegateMethods
- Defined in:
- lib/multiple_table_inheritance/child/base.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
159
160
161
162
163
164
165
|
# File 'lib/multiple_table_inheritance/child/base.rb', line 159
def method_missing(name, *args, &block)
if parent_association_respond_to?(name)
parent_association.send(name, *args, &block)
else
super
end
end
|
Instance Method Details
#respond_to?(name, *args) ⇒ Boolean
167
168
169
|
# File 'lib/multiple_table_inheritance/child/base.rb', line 167
def respond_to?(name, *args)
super || parent_association_respond_to?(name)
end
|