Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Oct 9, 2023
1 parent c07ae4f commit 0f88758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
class ApplicationController < ActionController::Base
include SetDashboardInstanceVariables

end
11 changes: 5 additions & 6 deletions app/controllers/fixed_expenses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@ def create

# PATCH/PUT /fixed_expenses/1 or /fixed_expenses/1.json
def update

respond_to do |format|
if @fixed_expense.update_from_dashboard(params: params[:fixed_expense])
@totals = FixedExpense.total_costs
format.html { redirect_to root_path, notice: "Fixed expense was successfully updated." }
format.turbo_stream
format.html { redirect_to root_path, notice: "Fixed expense was successfully updated." }
format.turbo_stream
else
format.html { render :edit, status: :unprocessable_entity }
format.json { render json: @fixed_expense.errors, status: :unprocessable_entity }
end
format.html { render :edit, status: :unprocessable_entity }
format.json { render json: @fixed_expense.errors, status: :unprocessable_entity }
end
end
end

# DELETE /fixed_expenses/1 or /fixed_expenses/1.json
Expand Down

0 comments on commit 0f88758

Please sign in to comment.