From 44e92733d334080702a8989e6c3a45be5b7e1312 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 21 Dec 2022 15:35:05 -0800 Subject: [PATCH] Refactor RaidsController for blueprinter --- app/controllers/api/v1/raids_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/v1/raids_controller.rb b/app/controllers/api/v1/raids_controller.rb index 6e9e51c..f5b898e 100644 --- a/app/controllers/api/v1/raids_controller.rb +++ b/app/controllers/api/v1/raids_controller.rb @@ -4,8 +4,7 @@ module Api module V1 class RaidsController < Api::V1::ApiController def all - @raids = Raid.all - render :all, status: :ok + render json: RaidBlueprint.render(Raid.all) end end end