Module: Protobuf::Mongoid::NestedAttributes::ClassMethods

Defined in:
lib/protobuf/mongoid/nested_attributes.rb

Overview

Class Methods

Instance Method Summary collapse

Instance Method Details

#accepts_nested_attributes_for(*attr_names) ⇒ Object

:nodoc:



26
27
28
29
30
31
32
33
34
# File 'lib/protobuf/mongoid/nested_attributes.rb', line 26

def accepts_nested_attributes_for(*attr_names)
  attribute_names = attr_names.dup
  attribute_names.extract_options!
  attribute_names.map!(&:to_s)

  super

  self._protobuf_nested_attributes += attribute_names
end