]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Localisation updates from http://translatewiki.net.
[rails.git] / app / models / user_token.rb
index 9a754d3442c5deeec13b6b35be7e6e59013dc772..3060b33ea17830012d0b65d864af56aa4dcbc989 100644 (file)
@@ -5,6 +5,10 @@ class UserToken < ActiveRecord::Base
 
   after_initialize :set_defaults
 
+  def expired?
+    expiry < Time.now
+  end
+
 private
 
   def set_defaults