From 3bcaaf696046fe77d122034bb7918725c35e0c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 20 Feb 2015 18:33:55 +0100 Subject: [PATCH] also update changed attributes --- app/models/post_action.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/post_action.rb b/app/models/post_action.rb index cb7cda7ece7..170d72fa99a 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -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))