]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/access_token.rb
Merge remote-tracking branch 'openstreetmap/pull/1395'
[rails.git] / app / models / access_token.rb
index 2bf226784085bd95d85681698b215e23710c39a7..f690c97542472dfa4fdbc54b5826e5dea4cf2d37 100644 (file)
@@ -4,7 +4,7 @@ class AccessToken < OauthToken
 
   scope :valid, -> { where(:invalidated_at => nil) }
 
-  validates_presence_of :user, :secret
+  validates :user, :secret, :presence => true
 
   before_create :set_authorized_at