aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 16:33:23 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 16:33:23 +0000
commita682d20873ce0b36e2f1885b4ccc19cd8f45d5ed (patch)
tree11f4bc293ade493c0683e305634746be11d5c179 /actionpack/lib
parent9e1fb3235dbb598cbd020f715682ad6ef2248c59 (diff)
downloadrails-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')
-rw-r--r--actionpack/lib/action_controller/cookies.rb2
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)