X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0cc579b2875a1f31d4425cc90378fd8cbf934974..0b9bf8d816902f969bac5b522c18067ad06df445:/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",