X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ae5d94b2f16d6f2cf1739e19ebc3793a18a0a4a..85d17f257c338f668a1d17d9fc62a2f48ec84230:/app/models/access_token.rb?ds=inline diff --git a/app/models/access_token.rb b/app/models/access_token.rb index 1f172c5f0..a1888343a 100644 --- a/app/models/access_token.rb +++ b/app/models/access_token.rb @@ -4,7 +4,7 @@ class AccessToken < OauthToken scope :valid, where(:invalidated_at => nil) - validates_presence_of :user + validates_presence_of :user, :secret before_create :set_authorized_at