]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Removed unused translations in preferences.show
[rails.git] / app / models / trace.rb
index d1f917571a21287f5de4e0a7a290e8e8337babb3..4d71b4b2933d02fdd63453147970f36d8369b24e 100644 (file)
@@ -81,16 +81,16 @@ class Trace < ApplicationRecord
             :content_type => content_type(attachable.path),
             :identify => false)
     else
-      super(attachable)
+      super
     end
   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?