module RelaxedCookieJar::CookieValidation
Public Class Methods
included(base)
click to toggle source
# File lib/relaxed_cookiejar/cookie_validation.rb, line 7 def self.included(base) base.extend(ClassMethods) base.module_eval do # This was the only way I found that would reliably override a static # method defined on a module, otherwise the old method was called. # # If you have a better idea of doing this, please create a PR. singleton_class.send :alias_method, :compute_search_domains_for_host_with_no_recursion, :compute_search_domains_for_host singleton_class.send :alias_method, :compute_search_domains_for_host, :compute_search_domains_for_host_with_recursion end end