mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
These autoloads do not serve much.
This commit is contained in:
parent
236f3af719
commit
05e5d332df
1 changed files with 4 additions and 4 deletions
|
|
@ -5,8 +5,8 @@ require 'http/cookie'
|
|||
# any particular website.
|
||||
|
||||
class HTTP::CookieJar
|
||||
autoload :AbstractSaver, 'http/cookie_jar/abstract_saver'
|
||||
autoload :AbstractStore, 'http/cookie_jar/abstract_store'
|
||||
require 'http/cookie_jar/abstract_store'
|
||||
require 'http/cookie_jar/abstract_saver'
|
||||
|
||||
attr_reader :store
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ class HTTP::CookieJar
|
|||
|
||||
begin
|
||||
saver = AbstractSaver.implementation(opthash[:format]).new(opthash)
|
||||
rescue KeyError => e
|
||||
rescue IndexError => e
|
||||
raise ArgumentError, e.message
|
||||
end
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ class HTTP::CookieJar
|
|||
|
||||
begin
|
||||
saver = AbstractSaver.implementation(opthash[:format]).new(opthash)
|
||||
rescue KeyError => e
|
||||
rescue IndexError => e
|
||||
raise ArgumentError, e.message
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue