mirror of https://github.com/rails/rails
rename push / pop function
This commit is contained in:
parent
ff6b713f5e
commit
3077cdf921
|
@ -286,7 +286,7 @@ module ActionView #:nodoc:
|
|||
self.class
|
||||
end
|
||||
|
||||
def in_context(options, locals)
|
||||
def in_rendering_context(options)
|
||||
old_view_renderer = @view_renderer
|
||||
old_lookup_context = @lookup_context
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ module ActionView
|
|||
def render(options = {}, locals = {}, &block)
|
||||
case options
|
||||
when Hash
|
||||
in_context(options, locals) do |renderer|
|
||||
in_rendering_context(options) do |renderer|
|
||||
if block_given?
|
||||
view_renderer.render_partial(self, options.merge(partial: options[:layout]), &block)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue