module ActionView::Helpers
Public Instance Methods
Source
# File lib/active_scaffold/extensions/action_view_rendering.rb, line 184 def render(options = {}, locals = {}, &block) case options when Hash in_rendering_context(options) do |_| # previously set view paths and lookup context are lost here # if you use view_renderer, so instead create a new renderer # with our context temp_renderer = ActionView::Renderer.new(@lookup_context) if block_given? temp_renderer.render_partial(self, options.merge(partial: options[:layout]), &block) else temp_renderer.render(self, options) end end else view_renderer.render_partial(self, partial: options, locals: locals, &block) end end
override the render method to use our @lookup_context instead of the memoized @_lookup_context