Permalink
Browse files

Initialize @view_context_class and cache view_context_class value.

  • Loading branch information...
1 parent f63d35f commit 626881577949ffce8370e097aa3efb3fec47d4f5 @miloops miloops committed Sep 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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(*)

0 comments on commit 6268815

Please sign in to comment.