This commit is contained in:
Stella Rouzi 2015-10-17 16:57:48 +03:00
parent 2e692f7ea5
commit 01086813af
37 changed files with 221 additions and 190 deletions

View file

@ -7,7 +7,7 @@ module Api
if params[:conference_id].blank?
conferences = Conference.all
else
conferences = Conference.find_all_by_guid(params[:conference_id])
conferences = Conference.find_by(short_title: params[:conference_id])
end
render json: conferences, serializer: ConferencesArraySerializer
end