clarion/app/views/api/speakers/index.jbuilder
2015-10-17 23:34:35 +03:00

7 lines
232 B
Ruby

@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
end
end