Class: TaintedLove::Validator::ActiveRecordFind
- Defined in:
- lib/tainted_love/validator/active_record_find.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#remove?(warning) ⇒ Boolean
6 7 8 9 10 11 12 |
# File 'lib/tainted_love/validator/active_record_find.rb', line 6 def remove?(warning) return unless warning.replacer == :ReplaceActiveRecord warning.stack_trace.lines.take(2).any? do |line| line[:file]['lib/active_record/core.rb'] && line[:method] == 'find' end end |