From 75ab0910f3eccf5ce79f3155a9daf54222809e52 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 18 Jun 2023 02:03:23 -0700 Subject: [PATCH] Add views to Raid blueprint --- app/blueprints/api/v1/raid_blueprint.rb | 2 +- app/controllers/api/v1/raids_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/blueprints/api/v1/raid_blueprint.rb b/app/blueprints/api/v1/raid_blueprint.rb index 1079cdd..be26e32 100644 --- a/app/blueprints/api/v1/raid_blueprint.rb +++ b/app/blueprints/api/v1/raid_blueprint.rb @@ -16,7 +16,7 @@ module Api view :full do include_view :nested - association :group, blueprint: RaidGroupBlueprint + association :group, blueprint: RaidGroupBlueprint, view: :flat end end end diff --git a/app/controllers/api/v1/raids_controller.rb b/app/controllers/api/v1/raids_controller.rb index 250505f..e59397f 100644 --- a/app/controllers/api/v1/raids_controller.rb +++ b/app/controllers/api/v1/raids_controller.rb @@ -8,7 +8,7 @@ module Api end def groups - render json: RaidGroupBlueprint.render(RaidGroup.all) + render json: RaidGroupBlueprint.render(RaidGroup.all, view: :full) end end end