Sha256: a643532f4c9cc4cec217793a7d3c2a1a05cb77cd1556c0ed72bde2166fa1bcb3

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

module TaintedLove
  module Validator
    class RailtiesYamlLoad < Base
      def remove?(warning)
        line = warning.stack_trace_line

        Object.const_defined?('Rails') &&
          warning.replacer == :ReplaceYAML &&
          line[:file]['rails/application.rb'] &&
          line[:method] == 'config_for'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tainted_love-0.4.1 lib/tainted_love/validator/railties_yaml_load.rb
tainted_love-0.4.0 lib/tainted_love/validator/railties_yaml_load.rb
tainted_love-0.1.5 lib/tainted_love/validator/railties_yaml_load.rb
tainted_love-0.1.4 lib/tainted_love/validator/railties_yaml_load.rb