X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9da90af1b5ac13b061506cd12f66fc1e6a316301..53aa7259bb0612eb48a17d0b954ad71ea37d87a4:/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]