Class: Mechanize::CookieJar
- Inherits:
-
Object
- Object
- Mechanize::CookieJar
- Defined in:
- lib/monkey-patches/mechanize-patches.rb
Instance Method Summary collapse
- #add(uri, cookie) ⇒ Object
-
#old_add ⇒ Object
hopefuly this alias approach will mean we capture changes in the mechanize method.
Instance Method Details
#add(uri, cookie) ⇒ Object
11 12 13 14 |
# File 'lib/monkey-patches/mechanize-patches.rb', line 11 def add(uri, ) uri.host = uri.host.gsub(/:.*/,"") #if host contains a port remove it so cookie validation works e.g. sandbox:6081 old_add(uri, ) end |
#old_add ⇒ Object
hopefuly this alias approach will mean we capture changes in the mechanize method
10 |
# File 'lib/monkey-patches/mechanize-patches.rb', line 10 alias_method :old_add, :add |