Parent

Methods

Class/Module Index [+]

Quicksearch

Mongoid::Relations::Cascading::Nullify

Public Instance Methods

cascade() click to toggle source

This cascade does not delete the referenced relations, but instead sets the foreign key values to nil.

@example Nullify the reference.

strategy.cascade
# File lib/mongoid/relations/cascading/nullify.rb, line 11
def cascade
  relation.nullify if relation
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.