2017-10-22 23:24:28 +03:00
|
|
|
class Public::EventFeedbackQrcodesController < Public::ApplicationController
|
|
|
|
def show
|
2019-10-13 14:38:03 +03:00
|
|
|
event = current_conference.events.joins(:proposition).approved.find(params[:event_id]).decorate
|
2017-10-22 23:24:28 +03:00
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
format.svg do
|
2019-10-13 14:38:03 +03:00
|
|
|
render(inline: event.feedback_qr_code_as_svg,
|
2017-10-22 23:24:28 +03:00
|
|
|
filename: "feedback_qr_code_#{event.id}.svg")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|