From 287929d6ce5781371ba9c5a63c219456138325b8 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 18 Feb 2016 13:43:39 -0300 Subject: [PATCH] Fix script that process merit rules --- script/process_merit_rules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/process_merit_rules.rb b/script/process_merit_rules.rb index e338a4c..95abf46 100755 --- a/script/process_merit_rules.rb +++ b/script/process_merit_rules.rb @@ -8,7 +8,7 @@ class ProcessObserver action = Merit::Action.find(changed_data[:merit_action_id]) model = action.target_obj return if model.nil? - new_date = YAML.load(action.target_data).created_at + new_date = model.created_at action.update_attribute(:created_at, new_date) merit.update_attribute(:created_at, new_date) end -- libgit2 0.21.2