Sha256: b13906d70f73f8ab100fe91b2ca674c7be9000495a84d4beb6c0048c1722f456
Contents?: true
Size: 564 Bytes
Versions: 16
Compression:
Stored size: 564 Bytes
Contents
# Log a fileset attachment to activity streams class FileSetAttachedEventJob < ContentEventJob # Log the event to the fileset's and its container's streams def log_event(repo_object) repo_object.log_event(event) curation_concern.log_event(event) end def action "User #{link_to_profile depositor} has attached #{link_to repo_object.title.first, polymorphic_path(repo_object)} to #{link_to curation_concern.title.first, polymorphic_path(curation_concern)}" end private def curation_concern repo_object.in_works.first end end
Version data entries
16 entries across 16 versions & 1 rubygems