blob: 028e79029235a40bf13018bae3b96db7a8fa33a3 (
plain) (
tree)
|
|
# 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)
if stag == "<%="
out.push "_erbout << ''"
end
end
end
|