X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..f4d84c48062a18f7f93b0d12a04c8e15c7f57e23:/app/models/user_token.rb?ds=inline diff --git a/app/models/user_token.rb b/app/models/user_token.rb index 844357d8d..f927563a9 100644 --- a/app/models/user_token.rb +++ b/app/models/user_token.rb @@ -18,13 +18,13 @@ # 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