From ed09b621bd0ca0377de8114bcd918ab3aba38abd Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 31 Aug 2007 19:07:42 +0000 Subject: Documentation tweaks and fixes. Closes #9454 [sur, kampers] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cookies.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/cookies.rb') 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 -- cgit v1.2.3