]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Merge pull request #3935 from Hufkratzer/rename-horse-riding-label
[rails.git] / app / models / user_token.rb
index 844357d8d0242000db462047ea6be54bd01342c1..f927563a948694b80197a2cdf1523f9f9ec126e4 100644 (file)
 #  user_tokens_user_id_fkey  (user_id => users.id)
 #
 
-class UserToken < ActiveRecord::Base
+class UserToken < ApplicationRecord
   belongs_to :user
 
   after_initialize :set_defaults
 
   def expired?
-    expiry < Time.now
+    expiry < Time.now.utc
   end
 
   private