Class: Motorhead::EngineRenderer

Inherits:
ActionView::PartialRenderer
  • Object
show all
Defined in:
lib/motorhead/action_view.rb

Instance Method Summary collapse

Instance Method Details

#render(context, options, block) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/motorhead/action_view.rb', line 38

def render(context, options, block)
  super
rescue => e
  ext_name = options[:partial][/[^\/]*/]
  (ext_name.camelize.constantize::Engine.on_error || Motorhead.config.on_error).call(e)
  context.capture(&block)
end