Class: Mongoid::Relations::Cascading::Nullify
- Defined in:
- lib/mongoid/relations/cascading/nullify.rb
Instance Attribute Summary
Attributes inherited from Strategy
#document, #metadata, #relation
Instance Method Summary collapse
-
#cascade ⇒ Object
This cascade does not delete the referenced relations, but instead sets the foreign key values to nil.
Methods inherited from Strategy
Constructor Details
This class inherits a constructor from Mongoid::Relations::Cascading::Strategy
Instance Method Details
#cascade ⇒ Object
This cascade does not delete the referenced relations, but instead sets the foreign key values to nil.
12 13 14 |
# File 'lib/mongoid/relations/cascading/nullify.rb', line 12 def cascade relation.nullify if relation end |