X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..ac7bb003ec9726d23d0a537f347c2dd4c8f7204a:/app/models/user_token.rb?ds=sidebyside 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