mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
also update changed attributes
This commit is contained in:
parent
ef2cad76ef
commit
3bcaaf6960
1 changed files with 1 additions and 0 deletions
|
@ -256,6 +256,7 @@ class PostAction < ActiveRecord::Base
|
|||
|
||||
if post_action
|
||||
post_action.recover!
|
||||
action_attrs.each { |attr, val| post_action.send("#{attr}=", val) }
|
||||
post_action.save
|
||||
else
|
||||
post_action = create(where_attrs.merge(action_attrs))
|
||||
|
|
Loading…
Reference in a new issue