Commit f400109eabb61505438504734b048a1a57c815d8

Authored by Victor Costa
1 parent 2a9421e8

Remove unused code

Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
lib/merit/badge_rules.rb
... ... @@ -48,12 +48,7 @@ module Merit
48 48 setting[:value].call(source) >= (badge.custom_fields || {}).fetch(:threshold, setting[:default_threshold])
49 49 end
50 50 end
51   -
52   - grant_on 'vote_plugin_profile#vote', badge: 'relevant-commenter', model_name: 'comment', to: 'author' do |voteable|
53   - return false if voteable.nil? || !voteable.kind_of?(Comment)
54   - voteable.votes.count >= 2
55   - end
56   -
57 51 end
  52 +
58 53 end
59 54 end
... ...