Move user images to Active Storage with paperclip as a fallback
This commit is contained in:
parent
ba627420a3
commit
6c202448ad
14 changed files with 78 additions and 41 deletions
|
@ -8,7 +8,7 @@ xml.tag! "user", :id => user.id,
|
|||
else
|
||||
xml.tag! "contributor-terms", :agreed => user.terms_agreed.present?
|
||||
end
|
||||
xml.tag! "img", :href => user_image_url(user) if user.image.file? || user.image_use_gravatar
|
||||
xml.tag! "img", :href => user_image_url(user) if user.avatar.attached? || user.image.file? || user.image_use_gravatar
|
||||
xml.tag! "roles" do
|
||||
user.roles.each do |role|
|
||||
xml.tag! role.role
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue