diff --git a/app/controllers/public/conference_feedbacks_controller.rb b/app/controllers/public/conference_feedbacks_controller.rb index 48a2bef..9b76e83 100644 --- a/app/controllers/public/conference_feedbacks_controller.rb +++ b/app/controllers/public/conference_feedbacks_controller.rb @@ -18,6 +18,7 @@ class Public::ConferenceFeedbacksController < Public::ApplicationController @feedback = current_conference.feedbacks.where(session_id: session.id).order(updated_at: :asc).last else @feedback = current_conference.feedbacks.build + @feedback.author_email = Feedback.where(session_id: session.id).order(updated_at: :asc).last.try(:author_email) end end diff --git a/app/controllers/public/event_feedbacks_controller.rb b/app/controllers/public/event_feedbacks_controller.rb index 358d732..4953d39 100644 --- a/app/controllers/public/event_feedbacks_controller.rb +++ b/app/controllers/public/event_feedbacks_controller.rb @@ -4,6 +4,7 @@ class Public::EventFeedbacksController < Public::ApplicationController @feedback = event.feedbacks.where(session_id: session.id).order(updated_at: :asc).last else @feedback = event.feedbacks.build + @feedback.author_email = Feedback.where(session_id: session.id).order(updated_at: :asc).last.try(:author_email) end end