Merge pull request #64 from jedmund/fix-weapon-conflicts
Small change to assist with weapon conflicts
This commit is contained in:
commit
91fdbfe393
1 changed files with 5 additions and 1 deletions
|
|
@ -40,7 +40,11 @@ module Api
|
||||||
|
|
||||||
weapon = GridWeapon.create!(party_id: party.id, weapon_id: incoming.id,
|
weapon = GridWeapon.create!(party_id: party.id, weapon_id: incoming.id,
|
||||||
position: resolve_params[:position], uncap_level: uncap_level)
|
position: resolve_params[:position], uncap_level: uncap_level)
|
||||||
render json: GridWeaponBlueprint.render(weapon, view: :nested), status: :created if weapon.save!
|
|
||||||
|
if weapon.save
|
||||||
|
view = render_grid_weapon_view(weapon, resolve_params[:position])
|
||||||
|
render json: view, status: :created
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue