Added includes for GroupCategory in GroupController set_group
• Added: - includes for GroupCategory in GroupController set_group
This commit is contained in:
parent
8c4f4899e7
commit
1baa123e25
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user