diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 6 |
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 |