Sha256: d784179c927f2bdf0f1fab7dbbff8be90520883a6497a76caaab85d4c789b446
Contents?: true
Size: 427 Bytes
Versions: 30
Compression:
Stored size: 427 Bytes
Contents
module Merit class SashFinder def self.find(rule, action) targets(rule, action).map(&:_sash) rescue NoMethodError Rails.logger.warn "[merit] Couldn't find model to grant reputation to. " \ "Refer to https://github.com/tute/merit/issues/171#issuecomment-44185696." [] end def self.targets(rule, action) TargetFinder.find(rule, action).compact end end end
Version data entries
30 entries across 30 versions & 2 rubygems