Add views to Raid blueprint

This commit is contained in:
Justin Edmund 2023-06-18 02:03:23 -07:00
parent 02559a4e79
commit 75ab0910f3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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