Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: PG::NotNullViolation (MAYBE-RAILS-DP) #1802

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set default budgeted_spending to 0.0 when blank in budget_category_pa…
…rams
  • Loading branch information
revise-dev[bot] authored Feb 4, 2025
commit 0a19f8cce6c45511b8ae48e74c3b0fd11289b440
2 changes: 0 additions & 2 deletions app/controllers/budget_categories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def update
@budget_category.update!(budget_category_params)

redirect_to budget_budget_categories_path(@budget_category.budget)
rescue ActiveRecord::RecordInvalid
render :show, status: :unprocessable_entity
end

private
Expand Down
Loading