Applied rubocop.

This commit is contained in:
Martin Edenhofer 2016-07-07 07:16:13 +02:00
parent ccba88e775
commit 0402ad4c74

View file

@ -207,11 +207,11 @@ class Observer::Transaction < ActiveRecord::Observer
return if real_changes.empty? return if real_changes.empty?
changed_by_id = nil changed_by_id = nil
if record.respond_to?('updated_by_id') changed_by_id = if record.respond_to?('updated_by_id')
changed_by_id = record.updated_by_id record.updated_by_id
else else
changed_by_id = record.created_by_id record.created_by_id
end end
e = { e = {
object: record.class.name, object: record.class.name,