Module: ActiveFedora::Aggregation::PersistLinks
- Included in:
- AggregationExtension
- Defined in:
- lib/active_fedora/aggregation/persist_links.rb
Instance Method Summary collapse
-
#persist_aggregation_links ⇒ Object
If the head or tail pointer was updated (in an autosave callback), then persist them.
Instance Method Details
#persist_aggregation_links ⇒ Object
If the head or tail pointer was updated (in an autosave callback), then persist them
4 5 6 7 |
# File 'lib/active_fedora/aggregation/persist_links.rb', line 4 def persist_aggregation_links return true unless @new_record_before_save save if changes.key?("head_id") or changes.key?("tail_id") end |