From 6af2d098960b7dc79e0a25fa26a4d4cab393b1de Mon Sep 17 00:00:00 2001 From: Tocho Tochev Date: Mon, 23 Sep 2024 13:24:42 +0300 Subject: [PATCH] Fix speaker picture and add name --- app/views/api/speakers/index.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/api/speakers/index.jbuilder b/app/views/api/speakers/index.jbuilder index e6e07b5..0597d7c 100644 --- a/app/views/api/speakers/index.jbuilder +++ b/app/views/api/speakers/index.jbuilder @@ -1,6 +1,6 @@ @speakers.each do |speaker| json.set! speaker.user_id do - json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name - json.picture speaker.picture.serializable_hash + json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name, :name + json.picture rails_blob_url(speaker.picture.variant(resize_to_fill: [100, 100])) end end -- 2.40.1