X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3db1a8bbb9f14799e0aabd12cff3c980c7da0167..fe1b0b43931dcefbf9308dc7b0a3639a4410ca53:/services/api/app/models/log.rb diff --git a/services/api/app/models/log.rb b/services/api/app/models/log.rb index f8d624acb7..3207d1f288 100644 --- a/services/api/app/models/log.rb +++ b/services/api/app/models/log.rb @@ -4,7 +4,6 @@ class Log < ArvadosModel include CommonApiTemplate serialize :properties, Hash before_validation :set_default_event_at - attr_accessor :object, :object_kind after_save :send_notify api_accessible :user, extend: :common do |t| @@ -47,7 +46,7 @@ class Log < ArvadosModel self.event_at = thing.created_at when "update" self.event_at = thing.modified_at - when "destroy" + when "delete" self.event_at = db_current_time end self