Module: MemberDelegation::Instance
- Defined in:
- app/delegations/member_delegation.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_sym, *args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/delegations/member_delegation.rb', line 3 def method_missing(method_sym, *args) if investor_account.respond_to?(method_sym) return investor_account.send(method_sym, *args) end if preference.respond_to?(method_sym) return preference.send(method_sym, *args) end if member_profile.respond_to?(method_sym) return member_profile.send(method_sym, *args) end super end |