Update qbo_controller.rb

This commit is contained in:
2016-07-28 20:06:06 -04:00
committed by GitHub
parent 7ac778586c
commit d71e9a78a1

View File

@@ -58,7 +58,7 @@ class QboController < ApplicationController
qbo.reconnect_token_at = 5.months.from_now.utc qbo.reconnect_token_at = 5.months.from_now.utc
qbo.company_id = params['realmId'] qbo.company_id = params['realmId']
if qbo.save! if qbo.save!
redirect_to qbo_sync_path, :flash => { :notice => "Successfully connected to Quickbooks" } redirect_to qbo_path, :flash => { :notice => "Successfully connected to Quickbooks" }
else else
redirect_to plugin_settings_path(:redmine_qbo), :flash => { :error => "Error" } redirect_to plugin_settings_path(:redmine_qbo), :flash => { :error => "Error" }
end end