Module: ActiveFedora::Aggregation::PersistLinks

Included in:
AggregationExtension
Defined in:
lib/active_fedora/aggregation/persist_links.rb

Instance Method Summary collapse

Instance Method Details

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