Add auto summon and Raid view to Party blueprint
This commit is contained in:
parent
0abc80c24f
commit
330254b7f7
2 changed files with 6 additions and 3 deletions
|
|
@ -34,7 +34,8 @@ module Api
|
|||
|
||||
view :minimal do
|
||||
fields :name, :element, :shortcode, :favorited, :extra,
|
||||
:full_auto, :clear_time, :auto_guard, :created_at, :updated_at
|
||||
:full_auto, :clear_time, :auto_guard, :auto_summon,
|
||||
:created_at, :updated_at
|
||||
|
||||
field :remix do |p|
|
||||
p.is_remix
|
||||
|
|
@ -49,7 +50,8 @@ module Api
|
|||
end
|
||||
|
||||
association :raid,
|
||||
blueprint: RaidBlueprint
|
||||
blueprint: RaidBlueprint,
|
||||
view: :full
|
||||
|
||||
association :job,
|
||||
blueprint: JobBlueprint
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ module Api
|
|||
# TODO: Validate accessory with job
|
||||
|
||||
return render json: PartyBlueprint.render(@party, view: :full, root: :party) if @party.save
|
||||
|
||||
|
||||
render_validation_error_response(@party)
|
||||
end
|
||||
|
||||
|
|
@ -259,6 +259,7 @@ module Api
|
|||
:skill3_id,
|
||||
:full_auto,
|
||||
:auto_guard,
|
||||
:auto_summon,
|
||||
:charge_attack,
|
||||
:clear_time,
|
||||
:button_count,
|
||||
|
|
|
|||
Loading…
Reference in a new issue