Add views to Raid blueprint
This commit is contained in:
parent
02559a4e79
commit
75ab0910f3
2 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ module Api
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
include_view :nested
|
include_view :nested
|
||||||
association :group, blueprint: RaidGroupBlueprint
|
association :group, blueprint: RaidGroupBlueprint, view: :flat
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
def groups
|
def groups
|
||||||
render json: RaidGroupBlueprint.render(RaidGroup.all)
|
render json: RaidGroupBlueprint.render(RaidGroup.all, view: :full)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue