diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-09-06 17:40:08 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-09-08 20:27:04 +0200 |
commit | 143d047d659799acad1563c4ca902c0b7c062f6b (patch) | |
tree | bbab72e69c2fa1fa82cd3c9d480e59319f689dd4 | |
parent | ed3d213eb6b79218eee9bd8b4fa8ac8c147cd114 (diff) | |
download | rails-143d047d659799acad1563c4ca902c0b7c062f6b.tar.gz rails-143d047d659799acad1563c4ca902c0b7c062f6b.tar.bz2 rails-143d047d659799acad1563c4ca902c0b7c062f6b.zip |
Add AbstractCookieJar class.
Eventually this will be the superclass of all the chained jars.
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index f37439e4d7..d3e1887478 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -412,7 +412,7 @@ module ActionDispatch end end - class PermanentCookieJar #:nodoc: + class AbstractCookieJar # :nodoc: include ChainedCookieJars def initialize(parent_jar) @@ -422,7 +422,9 @@ module ActionDispatch def [](name) @parent_jar[name.to_s] end + end + class PermanentCookieJar < AbstractCookieJar # :nodoc: def []=(name, options) if options.is_a?(Hash) options.symbolize_keys! |