app/cells/decidim/conferences/conference_speaker_cell.rb in decidim-conferences-0.24.3 vs app/cells/decidim/conferences/conference_speaker_cell.rb in decidim-conferences-0.25.0.rc1
- old
+ new
@@ -37,13 +37,13 @@
def presenters_for_speakers(speakers)
speakers.map { |speaker| present(speaker) }
end
- def avatar
- return model.user.avatar if model.user.present?
+ def avatar_path
+ return Decidim::UserPresenter.new(model.user).avatar_url if model.user.present?
- model.avatar
+ model.attached_uploader(:avatar).path
end
def has_profile?
model.profile_path.present?
end