Class: TaintedLove::Validator::I18nLoad
- Defined in:
- lib/tainted_love/validator/i18n_load.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#remove?(warning) ⇒ Boolean
6 7 8 9 10 11 12 13 14 |
# File 'lib/tainted_love/validator/i18n_load.rb', line 6 def remove?(warning) return unless [:ReplaceYAML, :ReplaceKernel].include?(warning.replacer) line = warning.stack_trace.lines.first if line[:file]['i18n/backend/base.rb'] && line[:method].start_with?('load_') return true end end |