Commit a71af58e6bbf18626ef0d1787cf10d612e9b0221

Authored by Victor Costa
1 parent 6463c4db
Exists in master

Fix script to process merit rules

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
script/process_merit_rules.rb
@@ -16,7 +16,7 @@ class ProcessObserver @@ -16,7 +16,7 @@ class ProcessObserver
16 end 16 end
17 17
18 def create_action(obj, index, count) 18 def create_action(obj, index, count)
19 - target_model = obj.class.base_class.name.downcase 19 + target_model = obj.class.base_class.name
20 action = Merit::Action.find_by_target_id_and_target_model_and_action_method(obj.id, target_model, 'create') 20 action = Merit::Action.find_by_target_id_and_target_model_and_action_method(obj.id, target_model, 'create')
21 if action.nil? 21 if action.nil?
22 puts "#{index}/#{count} Create merit action for #{target_model} #{obj.id}" 22 puts "#{index}/#{count} Create merit action for #{target_model} #{obj.id}"