Class: ReActionView::Template::Handlers::ERB

Inherits:
ActionView::Template::Handlers::ERB
  • Object
show all
Includes:
LocalTemplate
Defined in:
lib/reactionview/template/handlers/erb.rb

Instance Method Summary collapse

Instance Method Details

#call(template, source) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/reactionview/template/handlers/erb.rb', line 11

def call(template, source)
  return super unless intercept_template?(template)

  ::ReActionView::Template::Handlers::Herb.call(
    template, source, validation_mode: herb_validation_mode(template)
  )
rescue StandardError => e
  raise unless fall_back_to_erb?(template)

  log_external_template_error(template, e)

  super
end