Sha256: 390d478b862c613aba22ddf0b0b06f016d6dacbfb676307229edcd9a62714051
Contents?: true
Size: 613 Bytes
Versions: 5
Compression:
Stored size: 613 Bytes
Contents
# A specific job to log a file deletion to a user's activity stream # # @attr_reader deleted_file_id The id of the file that has been deleted by the user class ContentDeleteEventJob < EventJob attr_reader :deleted_file_id def initialize(deleted_file_id, depositor_id) super(depositor_id) @deleted_file_id = deleted_file_id end def action @action ||= "User #{link_to_profile depositor_id} has deleted file '#{deleted_file_id}'" end # override to log the event to the users profile stream instead of the user's stream def log_user_event depositor.log_profile_event(event) end end
Version data entries
5 entries across 5 versions & 1 rubygems