Class: Ddr::Events::UpdateEvent
- Defined in:
- lib/ddr/events/update_event.rb
Constant Summary
Constants inherited from Event
Event::DATE_TIME_FORMAT, Event::DDR_SOFTWARE, Event::DEFAULT_SORT_ORDER, Event::FAILURE, Event::INVALID, Event::OUTCOMES, Event::SUCCESS, Event::SYSTEM, Event::VALID
Class Method Summary collapse
Methods inherited from Event
#comment_or_summary, #display_type, #event_date_time_s, #failure!, #failure?, for_object, for_pid, #object, #object=, #performed_by, #pid=, repository_software, #success!, #success?, #user=
Class Method Details
.call(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ddr/events/update_event.rb', line 5 def self.call(*args) super do |event, notification| attrs_changed = notification.payload[:attributes_changed] ds_changed = notification.payload[:datastreams_changed] event.detail = ["Attributes changed: #{attrs_changed}", "Datastreams changed: #{ds_changed.join(', ')}", event.detail, ].compact.join("\n\n") end end |