X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bd402599f541e3da86036f21d955b6e6fc31185c..56d39b06f2173c753a06fa64db8be1abdc43d01e:/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",