]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth2_verifier.rb
Notes: show first comment as marker tooltip
[rails.git] / app / models / oauth2_verifier.rb
index 4dcce5588ff8756b451d80cdeeed20918e7dc58c..a404d0c7a872c6d1cb8673cafdc3ea3feb792f4f 100644 (file)
@@ -1,5 +1,6 @@
 class Oauth2Verifier < OauthToken
-  validates_presence_of :user
+  validates :user, :presence => true, :associated => true
+
   attr_accessor :state
 
   def exchange!(_params = {})