X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/56d39b06f2173c753a06fa64db8be1abdc43d01e..28bfb9999f9d578248f43c36b7f35dc4681b7475:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index df66496a2..bf8d3731b 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -7,7 +7,7 @@ class Trace < ActiveRecord::Base scope :visible, -> { where(:visible => true) } scope :visible_to, ->(u) { visible.where("visibility IN ('public', 'identifiable') OR user_id = ?", u) } - scope :public, -> { where(:visibility => ["public", "identifiable"]) } + scope :visible_to_all, -> { where(:visibility => ["public", "identifiable"]) } scope :tagged, ->(t) { joins(:tags).where(:gpx_file_tags => { :tag => t }) } validates_presence_of :user_id, :name, :timestamp