]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Remove robots.txt block for /user/*/diary
[rails.git] / app / models / user_token.rb
index dda19118702726214d0cc4f5b2830cbb6e6fd615..735fd848580b3fb1e5146422d8f413add527e803 100644 (file)
@@ -3,6 +3,10 @@ class UserToken < ActiveRecord::Base
 
   after_initialize :set_defaults
 
+  def expired?
+    expiry < Time.now
+  end
+
 private
 
   def set_defaults