diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-03 19:27:30 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-03 19:35:00 +0200 |
commit | 68f829e11c058c55a6695b5812aa0577b5b1eea1 (patch) | |
tree | f81e1291db51e820ae927e2d76b08de2f5a2d39f /app/models | |
parent | 71458dc6df368801b32b55bb63baa94375019a83 (diff) |
Add basic logging of who resolved report
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/report.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/report.rb b/app/models/report.rb index 05dc8cff1..fd8e46aac 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -3,6 +3,7 @@ class Report < ApplicationRecord belongs_to :account belongs_to :target_account, class_name: 'Account' + belongs_to :action_taken_by_account, class_name: 'Account' scope :unresolved, -> { where(action_taken: false) } scope :resolved, -> { where(action_taken: true) } |