X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d57dd1f4da4d4605f534607b69944e3c977e4db5..aba6b5592d495ab92504b1aecd12c5901e419cc6:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 20723b98d..4d71b4b29 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -86,11 +86,11 @@ class Trace < ApplicationRecord end def public? - visibility == "public" || visibility == "identifiable" + %w[public identifiable].include?(visibility) end def trackable? - visibility == "trackable" || visibility == "identifiable" + %w[trackable identifiable].include?(visibility) end def identifiable?