Update raid blueprints
- Show flat representation of raid group in RaidBlueprint's nested view - Show nested representation of raid in RaidGroupBlueprint's full view
This commit is contained in:
parent
8f77a1f613
commit
76f3b85613
2 changed files with 2 additions and 4 deletions
|
|
@ -13,9 +13,7 @@ module Api
|
||||||
|
|
||||||
fields :slug, :level, :element
|
fields :slug, :level, :element
|
||||||
|
|
||||||
field :group do |raid|
|
association :group, blueprint: RaidGroupBlueprint, view: :flat
|
||||||
{ extra: raid.group&.extra }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ module Api
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
include_view :flat
|
include_view :flat
|
||||||
association :raids, blueprint: RaidBlueprint, view: :full
|
association :raids, blueprint: RaidBlueprint, view: :nested
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue