]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Fix new rubocop warnings
[rails.git] / app / models / trace.rb
index 20723b98d01ddc7e0efe3d732879c12c8345d77b..4d71b4b2933d02fdd63453147970f36d8369b24e 100644 (file)
@@ -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?