class Threshold::RateFilterValidator

Create a Rate Filter validator

Public Instance Methods

comment_set?(entity) click to toggle source
# File lib/threshold/rate_filter.rb, line 84
def comment_set?(entity)
  entity.comment
end
not_track_by_rule?(entity) click to toggle source
# File lib/threshold/rate_filter.rb, line 88
def not_track_by_rule?(entity)
  if entity.apply_to == nil
    entity.track_by == false
  else
    entity.track_by != 'rule'
  end
end