Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initialize @view_context_class and cache view_context_class value.

  • Loading branch information...
commit 626881577949ffce8370e097aa3efb3fec47d4f5 1 parent f63d35f
@miloops miloops authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/abstract_controller/rendering.rb
View
2  actionpack/lib/abstract_controller/rendering.rb
@@ -66,7 +66,7 @@ def view_context_class
attr_writer :view_context_class
def view_context_class
- @view_context_class || self.class.view_context_class
+ @view_context_class ||= self.class.view_context_class
end
def initialize(*)
Please sign in to comment.
Something went wrong with that request. Please try again.