Permalink
Browse files

Fixed a bug where cookies wouldn't be set if a symbol was used instea…

…d of a string as the key

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6ca5eba commit cd3f14cf38750dd82132e2ba06033a945be20915 @dhh dhh committed Jan 17, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/cookies.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key
+
* Added assert_cookie_equal to assert the contents of a named cookie
* Fixed bug in page caching that prevented it from working at all
@@ -48,7 +48,7 @@ def []=(name, options)
options = options.inject({}) { |options, pair| options[pair.first.to_s] = pair.last; options }
options["name"] = name.to_s
else
- options = { "name" => name, "value" => options }
+ options = { "name" => name.to_s, "value" => options }
end
set_cookie(options)

0 comments on commit cd3f14c

Please sign in to comment.