]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Add tests for BrowseHelper#wikipedia_link
[rails.git] / app / models / user_token.rb
index 9a754d3442c5deeec13b6b35be7e6e59013dc772..735fd848580b3fb1e5146422d8f413add527e803 100644 (file)
@@ -1,10 +1,12 @@
 class UserToken < ActiveRecord::Base
   belongs_to :user
 
-  attr_accessible :referer
-
   after_initialize :set_defaults
 
+  def expired?
+    expiry < Time.now
+  end
+
 private
 
   def set_defaults