lib/url_reader.rb in url_reader-0.2.4 vs lib/url_reader.rb in url_reader-0.2.5

- old
+ new

@@ -8,10 +8,12 @@ include UrlFixer REQUEST_TIMEOUT = 10 REQUEST_OPEN_TIMEOUT = 10 - cattr_accessor :last_response_headers, :last_response_cookies, :last_cache_used + included do + cattr_accessor :last_response_headers, :last_response_cookies, :last_cache_used + end def read_url(url, options = {}) self.class.last_response_headers = nil self.class.last_response_cookies = nil self.class.last_cache_used = false