Alias table name to object to maintain API consistency
This commit is contained in:
parent
b89e83df97
commit
ea0bbc542e
3 changed files with 6 additions and 6 deletions
|
|
@ -10,12 +10,12 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
view :preview do
|
view :preview do
|
||||||
association :character, blueprint: CharacterBlueprint
|
association :character, name: :object, blueprint: CharacterBlueprint
|
||||||
end
|
end
|
||||||
|
|
||||||
view :nested do
|
view :nested do
|
||||||
include_view :mastery_bonuses
|
include_view :mastery_bonuses
|
||||||
association :character, blueprint: CharacterBlueprint, view: :full
|
association :character, name: :object, blueprint: CharacterBlueprint, view: :full
|
||||||
end
|
end
|
||||||
|
|
||||||
view :uncap do
|
view :uncap do
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ module Api
|
||||||
fields :main, :friend, :position, :quick_summon, :uncap_level, :transcendence_step
|
fields :main, :friend, :position, :quick_summon, :uncap_level, :transcendence_step
|
||||||
|
|
||||||
view :preview do
|
view :preview do
|
||||||
association :summon, blueprint: SummonBlueprint
|
association :summon, name: :object, blueprint: SummonBlueprint
|
||||||
end
|
end
|
||||||
|
|
||||||
view :nested do
|
view :nested do
|
||||||
association :summon, blueprint: SummonBlueprint, view: :full
|
association :summon, name: :object, blueprint: SummonBlueprint, view: :full
|
||||||
end
|
end
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ module Api
|
||||||
fields :mainhand, :position, :uncap_level, :transcendence_step, :element
|
fields :mainhand, :position, :uncap_level, :transcendence_step, :element
|
||||||
|
|
||||||
view :preview do
|
view :preview do
|
||||||
association :weapon, blueprint: WeaponBlueprint
|
association :weapon, name: :object, blueprint: WeaponBlueprint
|
||||||
end
|
end
|
||||||
|
|
||||||
view :nested do
|
view :nested do
|
||||||
|
|
@ -24,7 +24,7 @@ module Api
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
association :weapon, blueprint: WeaponBlueprint, view: :full
|
association :weapon, name: :object, blueprint: WeaponBlueprint, view: :full
|
||||||
association :weapon_keys,
|
association :weapon_keys,
|
||||||
blueprint: WeaponKeyBlueprint,
|
blueprint: WeaponKeyBlueprint,
|
||||||
if: ->(_field_name, w, _options) { [2, 3, 17, 24, 34].include?(w.weapon.series) }
|
if: ->(_field_name, w, _options) { [2, 3, 17, 24, 34].include?(w.weapon.series) }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue