mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -64,9 +64,9 @@ class CustomersController < ApplicationController
|
||||
flash[:notice] = "Customer updated"
|
||||
redirect_to @customer
|
||||
else
|
||||
flash[:error] = @customer.errors.full_messages.to_sentence if @customer.errors
|
||||
redirect_to edit_customer_path
|
||||
end
|
||||
flash[:error] = @customer.errors.full_messages.to_sentence if @customer.errors
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user