Browse Source

feat: revert before_save -> before_validation

pull/1931/head
natdeanlewissoftwire 3 years ago
parent
commit
ca21132502
  1. 2
      app/models/log.rb

2
app/models/log.rb

@ -8,7 +8,7 @@ class Log < ApplicationRecord
belongs_to :updated_by, class_name: "User", optional: true
belongs_to :bulk_upload, optional: true
before_validation :update_status!
before_save :update_status!
STATUS = {
"not_started" => 0,

Loading…
Cancel
Save