]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/access_token.rb
Add padding between the last diary post and the pagination links
[rails.git] / app / models / access_token.rb
index 6e48c996df1e1038daafea5b3899cff83eb1ab02..f690c97542472dfa4fdbc54b5826e5dea4cf2d37 100644 (file)
@@ -4,11 +4,11 @@ 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