X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62e571a4aaa7324fe56c6c58a0dca5f943e7f9ee..8ae5d94b2f16d6f2cf1739e19ebc3793a18a0a4a:/app/models/access_token.rb diff --git a/app/models/access_token.rb b/app/models/access_token.rb index b773310ce..1f172c5f0 100644 --- a/app/models/access_token.rb +++ b/app/models/access_token.rb @@ -1,5 +1,11 @@ -class AccessToken nil) + validates_presence_of :user + before_create :set_authorized_at protected @@ -7,4 +13,4 @@ protected def set_authorized_at self.authorized_at = Time.now end -end \ No newline at end of file +end