Class Mongoid::Relations::Cascading::Strategy
In: lib/mongoid/relations/cascading/strategy.rb
Parent: Object

Methods

new  

Attributes

document  [RW] 
metadata  [RW] 
relation  [RW] 

Public Class methods

Initialize the new cascade strategy, which will set up the relation and the metadata.

@example Instantiate the strategy

  Strategy.new(document, metadata)

@param [ Document ] document The document to cascade from. @param [ Metadata ] metadata The relation‘s metadata.

@return [ Strategy ] The new strategy.

[Validate]