mirror of https://github.com/rails/rails
Renamed CookieContainer to CookieJar to be cute. Its a private container anyway, so what do you care?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@24 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
08a2249e90
commit
55af595214
|
@ -22,11 +22,11 @@ module ActionController #:nodoc:
|
|||
module Cookies
|
||||
# Returns the cookie container, which operates as described above.
|
||||
def cookies
|
||||
CookieContainer.new(self)
|
||||
CookieJar.new(self)
|
||||
end
|
||||
end
|
||||
|
||||
class CookieContainer < Hash #:nodoc:
|
||||
class CookieJar < Hash #:nodoc:
|
||||
def initialize(controller)
|
||||
@controller, @cookies = controller, controller.instance_variable_get("@cookies")
|
||||
super()
|
||||
|
|
Loading…
Reference in New Issue