Method: Mongoid::Relations::Proxy#method_missing

Defined in:
lib/mongoid/relations/proxy.rb

#method_missing(name, *args, &block) ⇒ Object (protected)

Default behavior of method missing should be to delegate all calls to the target of the proxy. This can be overridden in special cases.

Parameters:

  • name (String, Symbol)

    The name of the method.

  • *args (Array)

    The arguments passed to the method.



103
104
105
# File 'lib/mongoid/relations/proxy.rb', line 103

def method_missing(name, *args, &block)
  target.send(name, *args, &block)
end