Browse Source

Putting back some element of event construction, which was used in some scripts

remotes/origin/master
echarp 2 years ago
parent
commit
59de7c9e5c
  1. 3
      app/models/event.rb

3
app/models/event.rb

@ -78,6 +78,9 @@ class Event < ApplicationRecord
before_validation on: :create do
self.submission_time = Time.zone.now
self.decision_time = Time.zone.now
# Populate submitter using contact info if absent
self.submitter ||= contact
end
before_validation on: :update do

Loading…
Cancel
Save