Module: MongoMapper::Plugins::Associations::NestedAttributes
- Defined in:
- lib/mongo_mapper/plugins/associations/nested_attributes.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- REJECT_ALL_BLANK_PROC =
proc { |attributes| attributes.all? { |_, value| value.blank? } }
Class Method Summary collapse
Class Method Details
.configure(model) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/mongo_mapper/plugins/associations/nested_attributes.rb', line 12 def self.configure(model) model.class_eval do class_inheritable_accessor :nested_attributes_options, :instance_writer => false self. = {} end end |