Class: EmbeddedRecordArray

Inherits:
ChangeSensitiveArray show all
Defined in:
lib/yodel/models/core/associations/embedded/embedded_record_array.rb

Instance Attribute Summary

Attributes inherited from ChangeSensitiveArray

#array

Instance Method Summary collapse

Methods inherited from ChangeSensitiveArray

#<<, #[]=, #clear, #collect, #count, #delete, #dup, #each, #include?, #initialize, #inspect, #method_missing, #pop, #push, #size, #to_a, #to_s

Constructor Details

This class inherits a constructor from ChangeSensitiveArray

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChangeSensitiveArray

Instance Method Details

#new(values = {}) ⇒ Object



2
3
4
# File 'lib/yodel/models/core/associations/embedded/embedded_record_array.rb', line 2

def new(values={})
  EmbeddedRecord.new(@field, @record).tap {|record| record.update(values, false)}
end