diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 68e3c5dd6d623d1b4aa4b2aa76410e37c3fd2d2f..934538fcee9e443f909efb8f32ae9ce2d0e86017 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -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 diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index c128e0e1a07c7f90116e7e3e81e13c8d004f37c4..0a45684f6bbd8a082c526d14dec79464619146a0 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -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)