diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:40:01 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:42:23 -0300 |
commit | 626881577949ffce8370e097aa3efb3fec47d4f5 (patch) | |
tree | 70d45761e11056aaabf5890d0e8e3e04d9890ed2 /actionpack/lib/abstract_controller/rendering.rb | |
parent | f63d35fba55867111427bfeb54c31b11e02d5d3f (diff) | |
download | rails-626881577949ffce8370e097aa3efb3fec47d4f5.tar.gz rails-626881577949ffce8370e097aa3efb3fec47d4f5.tar.bz2 rails-626881577949ffce8370e097aa3efb3fec47d4f5.zip |
Initialize @view_context_class and cache view_context_class value.
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 5d9b35d297..918def3e81 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -66,7 +66,7 @@ module AbstractController 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(*) |