rename push / pop function

This commit is contained in:
Aaron Patterson 2019-02-13 15:35:20 -08:00
parent ff6b713f5e
commit 3077cdf921
No known key found for this signature in database
GPG Key ID: 953170BCB4FFAFC6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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