Sha256: c66e72f286d3143eb8d0621937491baf3dd4b14476e664dc96a6b74566126595

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

# These classes are used to strip out the ERB configuration
# values so we can evaluate the database.yml without evaluating
# the ERB values.
class DummyERB < ERB # :nodoc:
  def make_compiler(trim_mode)
    DummyCompiler.new trim_mode
  end
end

class DummyCompiler < ERB::Compiler # :nodoc:
  def compile_content(stag, out)
    case stag
    when "<%="
      out.push "_erbout << 'dummy_compiler'"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railties-6.0.0.rc1 lib/rails/application/dummy_erb_compiler.rb