maybe_add should always return the record

This commit is contained in:
Thorsten 2016-12-05 13:30:55 +01:00 committed by GitHub
parent ce436c6f01
commit fd1b0f9c18

View file

@ -23,7 +23,7 @@ module Cti
o_id: data[:o_id],
user_id: data[:user_id],
)
return if !record.new_record?
return record if !record.new_record?
record.comment = data[:comment]
record.save!
end