X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..7764f6fc28610799b09ea62e48189aa51e341e41:/app/models/access_token.rb diff --git a/app/models/access_token.rb b/app/models/access_token.rb index a1888343a..3aa6f9daf 100644 --- a/app/models/access_token.rb +++ b/app/models/access_token.rb @@ -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