maybe_add should always return the record
This commit is contained in:
parent
ce436c6f01
commit
fd1b0f9c18
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module Cti
|
||||||
o_id: data[:o_id],
|
o_id: data[:o_id],
|
||||||
user_id: data[:user_id],
|
user_id: data[:user_id],
|
||||||
)
|
)
|
||||||
return if !record.new_record?
|
return record if !record.new_record?
|
||||||
record.comment = data[:comment]
|
record.comment = data[:comment]
|
||||||
record.save!
|
record.save!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue