Sha256: 57fb5e7f73514d61182036a9a42f5e43b5025ee8854d2f3e7d104dbeb4574037
Contents?: true
Size: 953 Bytes
Versions: 3
Compression:
Stored size: 953 Bytes
Contents
module Hydra module Collection extend ActiveSupport::Concern extend Deprecation include Hydra::WithDepositor # for access to apply_depositor_metadata include Hydra::AccessControls::Permissions include Hydra::Collections::Collectible include Hydra::Collections::Metadata include Hydra::Collections::Relations def update_all_members Deprecation.warn(Collection, 'update_all_members is deprecated and will be removed in version 5.0') self.members.collect { |m| update_member(m) } end # TODO: Use solr atomic updates to accelerate this process def update_member member Deprecation.warn(Collection, 'update_member is deprecated and will be removed in version 5.0') # because the member may have its collections cached, reload that cache so that it indexes the correct fields. member.collections(true) if member.respond_to? :collections member.update_index end end end
Version data entries
3 entries across 3 versions & 1 rubygems