aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cookies.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-08-31 19:07:42 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-08-31 19:07:42 +0000
commited09b621bd0ca0377de8114bcd918ab3aba38abd (patch)
tree2022663ce9b8908ec8ce6dd29064b5b7b22b27e8 /actionpack/lib/action_controller/cookies.rb
parent33e5e41ddaf59bc9c08e4d9eb34d52174bf05114 (diff)
downloadrails-ed09b621bd0ca0377de8114bcd918ab3aba38abd.tar.gz
rails-ed09b621bd0ca0377de8114bcd918ab3aba38abd.tar.bz2
rails-ed09b621bd0ca0377de8114bcd918ab3aba38abd.zip
Documentation tweaks and fixes. Closes #9454 [sur, kampers]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cookies.rb')
-rw-r--r--actionpack/lib/action_controller/cookies.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb
index d337491ecb..7990eab45e 100644
--- a/actionpack/lib/action_controller/cookies.rb
+++ b/actionpack/lib/action_controller/cookies.rb
@@ -44,8 +44,8 @@ module ActionController #:nodoc:
update(@cookies)
end
- # Returns the value of the cookie by +name+ -- or nil if no such cookie exists. You set new cookies using either the cookie method
- # or cookies[]= (for simple name/value cookies without options).
+ # Returns the value of the cookie by +name+ -- or nil if no such cookie exists. You set new cookies using cookies[]=
+ # (for simple name/value cookies without options).
def [](name)
@cookies[name.to_s].value.first if @cookies[name.to_s] && @cookies[name.to_s].respond_to?(:value)
end