diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-19 10:26:03 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-19 10:26:03 +0000 |
commit | 865874ab6a8be80d896604ba4106e14b57ebfdc5 (patch) | |
tree | 4cdc89a8ab9435db414169ff5300da50e0d26771 /actionpack/lib/action_view | |
parent | aa236c4425dc4564ced76c27c921cd0d5e9fd106 (diff) | |
download | rails-865874ab6a8be80d896604ba4106e14b57ebfdc5.tar.gz rails-865874ab6a8be80d896604ba4106e14b57ebfdc5.tar.bz2 rails-865874ab6a8be80d896604ba4106e14b57ebfdc5.zip |
Fixed stringification on all assigned hashes. The sacrifice is that assigns[:person] wont work in testing. Instead assigns["person"] or assigns(:person) must be used. In other words, the keys of assigns stay strings but weve added a method-based accessor to appease the need for symbols.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index cffbbfcb6b..72200904f0 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -157,7 +157,7 @@ module ActionView #:nodoc: end def initialize(base_path = nil, assigns_for_first_render = {}, controller = nil)#:nodoc: - @base_path, @assigns = base_path, assigns_for_first_render.with_indifferent_access + @base_path, @assigns = base_path, assigns_for_first_render @controller = controller end |