# File lib/her/model/associations/association_proxy.rb, line 31 def method_missing(name, *args, &block) if name == :object_id # avoid redefining object_id return association.fetch.object_id end # create a proxy to the fetched object's method AssociationProxy.install_proxy_methods 'association.fetch', name # resend message to fetched object __send__(name, *args, &block) end