]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/access_token.rb
Implement context menu with: directions, add note, describe, centre.
[rails.git] / app / models / access_token.rb
index 3aa6f9daf7fddfd587f5ae6f81b77942b9755d00..f690c97542472dfa4fdbc54b5826e5dea4cf2d37 100644 (file)
@@ -4,12 +4,12 @@ class AccessToken < OauthToken
 
   scope :valid, -> { where(:invalidated_at => nil) }
 
-  validates_presence_of :user, :secret
+  validates :user, :secret, :presence => true
 
   before_create :set_authorized_at
-  
-protected 
-  
+
+  protected
+
   def set_authorized_at
     self.authorized_at = Time.now
   end