1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Rename method so it is more descriptive

This commit is contained in:
Aaron Patterson 2019-01-24 12:45:21 -08:00
parent 517b96207d
commit 8fc73067e3
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -41,7 +41,7 @@ module ActionView
def _helpers
end
def build_av_class(klass, supports_path, routes, helpers)
def build_view_context_class(klass, supports_path, routes, helpers)
Class.new(klass) do
if routes
include routes.url_helpers(supports_path)
@ -57,10 +57,10 @@ module ActionView
def view_context_class
klass = ActionView::LookupContext::DetailsKey.view_context_class(ActionView::Base)
@view_context_class ||= build_av_class(klass, supports_path?, _routes, _helpers)
@view_context_class ||= build_view_context_class(klass, supports_path?, _routes, _helpers)
if klass.changed?(@view_context_class)
@view_context_class = build_av_class(klass, supports_path?, _routes, _helpers)
@view_context_class = build_view_context_class(klass, supports_path?, _routes, _helpers)
end
@view_context_class