From 1baa123e258934994486d26b8399de251a6bbd78 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 11 Sep 2020 17:23:13 -0500 Subject: [PATCH] Added includes for GroupCategory in GroupController set_group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added: - includes for GroupCategory in GroupController set_group --- app/controllers/api/v1/groups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/groups_controller.rb b/app/controllers/api/v1/groups_controller.rb index f113efb8..fd94db75 100644 --- a/app/controllers/api/v1/groups_controller.rb +++ b/app/controllers/api/v1/groups_controller.rb @@ -85,7 +85,7 @@ class Api::V1::GroupsController < Api::BaseController private def set_group - @group = Group.where(id: params[:id], is_archived: false).first + @group = Group.where(id: params[:id], is_archived: false).includes(:group_categories).first end def group_params