Commit 84c24a16f9be7eed23327e28c584a2aa08a594a1

Authored by Hugo Melo
1 parent 8f6e8ef9

Remove debug line

Showing 1 changed file with 0 additions and 1 deletions   Show diff stats
lib/merit/badge_rules.rb
@@ -161,7 +161,6 @@ module Merit @@ -161,7 +161,6 @@ module Merit
161 end 161 end
162 # pass source and to for different situations 162 # pass source and to for different situations
163 action = (badge.custom_fields || {}).fetch(s[:action], {}) 163 action = (badge.custom_fields || {}).fetch(s[:action], {})
164 - debugger if source.is_a? Vote  
165 can_be_granted &= s[:value].call(source, to) >= action.fetch(:threshold, s[:default_threshold]).to_i 164 can_be_granted &= s[:value].call(source, to) >= action.fetch(:threshold, s[:default_threshold]).to_i
166 end 165 end
167 can_be_granted 166 can_be_granted