X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0cc579b2875a1f31d4425cc90378fd8cbf934974..28bfb9999f9d578248f43c36b7f35dc4681b7475:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 81154fff7..010cdf464 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -26,7 +26,7 @@ class User < ActiveRecord::Base scope :visible, -> { where(:status => ["pending", "active", "confirmed"]) } scope :active, -> { where(:status => ["active", "confirmed"]) } - scope :public, -> { where(:data_public => true) } + scope :identifiable, -> { where(:data_public => true) } has_attached_file :image, :default_url => "/assets/:class/:attachment/:style.png",