Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created March 15, 2010 12:36
Show Gist options
  • Save ucnv/332794 to your computer and use it in GitHub Desktop.
Save ucnv/332794 to your computer and use it in GitHub Desktop.
diff --git a/lib/grope/web_resource_load_delegate.rb b/lib/grope/web_resource_load_delegate.rb
index c4abaa7..b270781 100644
--- a/lib/grope/web_resource_load_delegate.rb
+++ b/lib/grope/web_resource_load_delegate.rb
@@ -82,4 +82,7 @@ class NSHTTPCookieWrapper
def expires
cookie.expiresDate && Time.at(cookie.expiresDate.timeIntervalSince1970.to_i)
end
+
+ alias :expired? :expires
+
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment