module Motorhead::ActionView::Renderer
Public Instance Methods
render(context, options, &block)
click to toggle source
Calls superclass method
# File lib/motorhead/action_view.rb, line 24 def render(context, options, &block) if options.key? :engine render_engine(context, options, &block) else super end end
render_engine(context, options, &block)
click to toggle source
# File lib/motorhead/action_view.rb, line 32 def render_engine(context, options, &block) partial_name = options.delete :engine Motorhead::EngineRenderer.new(@lookup_context).render(context, options.merge(partial: partial_name), block) end