mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 16:02:44 +08:00
also update changed attributes
This commit is contained in:
parent
ef2cad76ef
commit
3bcaaf6960
|
@ -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 New Issue
Block a user