X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2d47d6b4f8c4309189704c2748ea92eeeaff6c4d..b86390d303030ae5faca278445ca8b404c1937a4:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 722d65302..7a0d06992 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -87,7 +87,7 @@ class User < ApplicationRecord scope :active, -> { where(:status => %w[active confirmed]) } scope :identifiable, -> { where(:data_public => true) } - has_one_attached :avatar + has_one_attached :avatar, :service => Settings.avatar_storage validates :display_name, :presence => true, :length => 3..255, :exclusion => %w[new terms save confirm confirm-email go_public reset-password forgot-password suspended]