Method: Mongoid::Association::Proxy#substitutable

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

#substitutableObject

The default substitutable object for an association proxy is the clone of the target.

Examples:

Get the substitutable.

proxy.substitutable

Returns:

  • (Object)

    A clone of the target.



97
98
99
# File 'lib/mongoid/association/proxy.rb', line 97

def substitutable
  _target
end