Show created view when remixing
That will let anonymous users edit their remixed parties
This commit is contained in:
parent
472fb6816b
commit
8651a58afc
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ module Api
|
||||||
new_party.local_id = party_params[:local_id] if !party_params.nil?
|
new_party.local_id = party_params[:local_id] if !party_params.nil?
|
||||||
|
|
||||||
if new_party.save
|
if new_party.save
|
||||||
render json: PartyBlueprint.render(new_party, view: :full, root: :party,
|
render json: PartyBlueprint.render(new_party, view: :created, root: :party,
|
||||||
meta: { remix: true })
|
meta: { remix: true })
|
||||||
else
|
else
|
||||||
render_validation_error_response(new_party)
|
render_validation_error_response(new_party)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue