Method: Mongoid::Association::Options#dependent

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

#dependentString

Specify what happens to the associated object when the owner is destroyed.

Returns:

  • (String)

    The dependent option.



20
21
22
# File 'lib/mongoid/association/options.rb', line 20

def dependent
  @options[:dependent]
end