fix scoping bug in dmail
This commit is contained in:
@@ -114,8 +114,8 @@ class Dmail < ApplicationRecord
|
|||||||
dmail = Dmail.new(from: User.system, **params)
|
dmail = Dmail.new(from: User.system, **params)
|
||||||
dmail.owner = dmail.to
|
dmail.owner = dmail.to
|
||||||
dmail.save
|
dmail.save
|
||||||
|
dmail
|
||||||
end
|
end
|
||||||
dmail
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user