Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#3 <@CristianFerreira, @mathiasVoelcker> - Deixar modal de confirmaca…
Browse files Browse the repository at this point in the history
…o aberta apos solicitar doadores
  • Loading branch information
CristianFerreira committed Nov 9, 2016
1 parent c9f5617 commit 079aab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/demand_blood_banks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create
:demand_blood_banks_id => @demand_blood_bank.id
end
end
format.html { }
format.html {}
format.json { render :show, status: :created, location: @demand_blood_bank }
else
format.html { render :new }
Expand All @@ -60,7 +60,7 @@ def create
def update
respond_to do |format|
if @demand_blood_bank.update(demand_blood_bank_params)
format.html { redirect_to @demand_blood_bank, notice: 'Hospital necessity was successfully updated.' }
format.html { }
format.json { render :show, status: :ok, location: @demand_blood_bank }
else
format.html { render :edit }
Expand Down

0 comments on commit 079aab5

Please sign in to comment.