Applied rubocop.
This commit is contained in:
parent
ccba88e775
commit
0402ad4c74
1 changed files with 5 additions and 5 deletions
|
@ -207,10 +207,10 @@ class Observer::Transaction < ActiveRecord::Observer
|
|||
return if real_changes.empty?
|
||||
|
||||
changed_by_id = nil
|
||||
if record.respond_to?('updated_by_id')
|
||||
changed_by_id = record.updated_by_id
|
||||
changed_by_id = if record.respond_to?('updated_by_id')
|
||||
record.updated_by_id
|
||||
else
|
||||
changed_by_id = record.created_by_id
|
||||
record.created_by_id
|
||||
end
|
||||
|
||||
e = {
|
||||
|
|
Loading…
Reference in a new issue