also update changed attributes

This commit is contained in:
Régis Hanol 2015-02-20 18:33:55 +01:00
parent ef2cad76ef
commit 3bcaaf6960

View file

@ -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))