X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0dba53c0232385f0fd080266f9a5ce3665426293..b3bd81fd4b5d9441c0edd58534ca5956a46c86bf:/app/models/user_token.rb diff --git a/app/models/user_token.rb b/app/models/user_token.rb index dda191187..735fd8485 100644 --- a/app/models/user_token.rb +++ b/app/models/user_token.rb @@ -3,6 +3,10 @@ class UserToken < ActiveRecord::Base after_initialize :set_defaults + def expired? + expiry < Time.now + end + private def set_defaults