Class: MassiveRecord::ORM::Persistence::Operations::Embedded::Insert
- Inherits:
-
Object
- Object
- MassiveRecord::ORM::Persistence::Operations::Embedded::Insert
- Defined in:
- lib/massive_record/orm/persistence/operations/embedded/insert.rb
Instance Attribute Summary
Attributes included from MassiveRecord::ORM::Persistence::Operations
Instance Method Summary collapse
Methods included from MassiveRecord::ORM::Persistence::Operations
atomic_operation, destroy, force, #initialize, insert, reload, suppress, suppressed?, update
Methods included from OperationHelpers
#embedded_in_proxies, #embedded_in_proxy_targets, #inverse_proxy_for, #raise_error_if_embedded_in_proxy_targets_are_missing, #row_for_record, #update_embedded
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/massive_record/orm/persistence/operations/embedded/insert.rb', line 11 def execute # NOTE # # When / if we allow for auto-save false when assigning # an embedded record to an embeds many collection we might # want to only update current insert in the targets, not a # complete save of the parent. .collect(&:save).any? end |