X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..faf4c5aa7a3c75b89d32b7d2205d004f9aa99cb7:/app/models/oauth2_verifier.rb diff --git a/app/models/oauth2_verifier.rb b/app/models/oauth2_verifier.rb index 4dcce5588..a404d0c7a 100644 --- a/app/models/oauth2_verifier.rb +++ b/app/models/oauth2_verifier.rb @@ -1,5 +1,6 @@ class Oauth2Verifier < OauthToken - validates_presence_of :user + validates :user, :presence => true, :associated => true + attr_accessor :state def exchange!(_params = {})