]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/access_token.rb
Simplify layouting
[rails.git] / app / models / access_token.rb
index a1888343a0ea387fc308638954de9d0be3e18c35..3aa6f9daf7fddfd587f5ae6f81b77942b9755d00 100644 (file)
@@ -2,7 +2,7 @@ class AccessToken < OauthToken
   belongs_to :user
   belongs_to :client_application
 
-  scope :valid, where(:invalidated_at => nil)
+  scope :valid, -> { where(:invalidated_at => nil) }
 
   validates_presence_of :user, :secret