Class: Mongoid::Relations::Embedded::Many

Inherits:
Relations::Many
  • Object
show all
Defined in:
lib/mongoid/core_ext/relations/embedded/many.rb

Class Method Summary collapse

Class Method Details

.valid_optionsArray<Symbol>

Get the valid options allowed with this relation.

Examples:

Get the valid options.

Relation.valid_options

Returns:

  • (Array<Symbol>)

    The valid options.

Since:

  • 2.1.0



14
15
16
17
18
19
# File 'lib/mongoid/core_ext/relations/embedded/many.rb', line 14

def valid_options
  [
    :as, :cascade_callbacks, :cyclic, :order, :versioned, :store_as,
    :before_add, :after_add, :before_remove, :after_remove
  ]
end