diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-26 16:33:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-11-26 16:33:23 +0000 |
commit | a682d20873ce0b36e2f1885b4ccc19cd8f45d5ed (patch) | |
tree | 11f4bc293ade493c0683e305634746be11d5c179 /actionpack/lib/action_controller/cookies.rb | |
parent | 9e1fb3235dbb598cbd020f715682ad6ef2248c59 (diff) | |
download | rails-a682d20873ce0b36e2f1885b4ccc19cd8f45d5ed.tar.gz rails-a682d20873ce0b36e2f1885b4ccc19cd8f45d5ed.tar.bz2 rails-a682d20873ce0b36e2f1885b4ccc19cd8f45d5ed.zip |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@26 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cookies.rb')
-rw-r--r-- | actionpack/lib/action_controller/cookies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index 8ce02ef78d..924dc714b1 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -36,7 +36,7 @@ module ActionController #:nodoc: # Returns the value of the cookie by +name+ -- or nil if no such cookie exist. You set new cookies using either the cookie method # or cookies[]= (for simple name/value cookies without options). def [](name) - @cookies[name.to_s].value if @cookies.is_a?(Hash) && @cookies[name.to_s] + @cookies[name.to_s].value if @cookies[name.to_s] && @cookies[name.to_s].respond_to?(:value) end def []=(name, options) |