diff options
author | Olly Legg <olly@51degrees.net> | 2009-05-28 09:18:27 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-28 09:18:27 -0500 |
commit | 0349278f3da9f7f532330cf295eed35ede3bae66 (patch) | |
tree | 5ae44b3e35c12ec2621c49e78b846b0a38ab0012 /actionpack/lib | |
parent | d17fb9dc766936efc721fc3e55ef9289902dc34c (diff) | |
download | rails-0349278f3da9f7f532330cf295eed35ede3bae66.tar.gz rails-0349278f3da9f7f532330cf295eed35ede3bae66.tar.bz2 rails-0349278f3da9f7f532330cf295eed35ede3bae66.zip |
Memoize cookies so that updates to cookies are available in the current request. [#2733 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/base/cookies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base/cookies.rb b/actionpack/lib/action_controller/base/cookies.rb index ca380e98d0..d4806623c3 100644 --- a/actionpack/lib/action_controller/base/cookies.rb +++ b/actionpack/lib/action_controller/base/cookies.rb @@ -51,7 +51,7 @@ module ActionController #:nodoc: protected # Returns the cookie container, which operates as described above. def cookies - CookieJar.new(self) + @cookies ||= CookieJar.new(self) end end |