Sha256: 91e445c0de8a594cfc81bade276f47327f90c7bc503e5ae04a00a7c5d2804f9c

Contents?: true

Size: 920 Bytes

Versions: 2

Compression:

Stored size: 920 Bytes

Contents

# frozen_string_literal: true

require 'method_source'

module ActionView
  class Template
    module Handlers
      class ERB
        class ThreadSafeErubis < Erubis
          eval Erubis.instance_method(:add_preamble).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:add_text).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:add_expr).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:add_expr_literal).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:add_expr_escaped).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:add_postamble).source.gsub('@output_buffer', 'output_buffer')
          eval Erubis.instance_method(:flush_newline_if_pending).source.gsub('@output_buffer', 'output_buffer')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
async_partial-0.7.0 lib/async_partial/handlers/erubis.rb
async_partial-0.6.0 lib/async_partial/handlers/erubis.rb