Sha256: c2d1819500ac9936c16abe14253fa2db86f91018eebe90eaa41b4dedf10bf6b3

Contents?: true

Size: 312 Bytes

Versions: 10

Compression:

Stored size: 312 Bytes

Contents

module ActiveFedora::Aggregation
  module PersistLinks
    # If the head or tail pointer was updated (in an autosave callback), then persist them
    def persist_aggregation_links
      return true unless @new_record_before_save
      save if changes.key?("head_id") or changes.key?("tail_id")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activefedora-aggregation-0.9.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.8.1 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.8.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.7.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.6.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.5.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.4.2 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.4.1 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.4.0 lib/active_fedora/aggregation/persist_links.rb
activefedora-aggregation-0.3.0 lib/active_fedora/aggregation/persist_links.rb