aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-01-24 12:45:21 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-06 16:57:34 -0800
commit8fc73067e3c11810af374e886a41b9f3611a8873 (patch)
treef046c34dfadaf740d815cfc9d6f8d95ea9cd1264
parent517b96207d0e083a42b81414efa9f9b6ba300e03 (diff)
downloadrails-8fc73067e3c11810af374e886a41b9f3611a8873.tar.gz
rails-8fc73067e3c11810af374e886a41b9f3611a8873.tar.bz2
rails-8fc73067e3c11810af374e886a41b9f3611a8873.zip
Rename method so it is more descriptive
-rw-r--r--actionview/lib/action_view/rendering.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb
index 8246e4ba6d..cf7d1105e0 100644
--- a/actionview/lib/action_view/rendering.rb
+++ b/actionview/lib/action_view/rendering.rb
@@ -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