diff --git a/app/controllers/meeting_contents_controller.rb b/app/controllers/meeting_contents_controller.rb index 58260e3c30..33ab20bd32 100644 --- a/app/controllers/meeting_contents_controller.rb +++ b/app/controllers/meeting_contents_controller.rb @@ -112,7 +112,8 @@ class MeetingContentsController < ApplicationController private def find_meeting - @meeting = Meeting.find(params[:meeting_id], include: [:project, :author, :participants, :agenda, :minutes]) + @meeting = Meeting.includes(:project, :author, :participants, :agenda, :minutes) + .find(params[:meeting_id]) @project = @meeting.project @author = User.current rescue ActiveRecord::RecordNotFound