class Object
Public Instance Methods
render_with_motorhead(options = {}, locals = {}, &block)
click to toggle source
FIXME FIXHAML AMCing here because prepending on `render` causes infinite loop when Haml is bundled
# File lib/motorhead/action_view.rb, line 4 def render_with_motorhead(options = {}, locals = {}, &block) if (Hash === options) && options.key?(:engine) ext_name = options[:engine][/[^\/]*/] if ext_name.camelize.constantize::Engine.active? controller view_renderer.render(self, options, &block) elsif block capture(&block) end else render_without_motorhead options, locals, &block end end