Update qbo.rb

This commit is contained in:
2016-07-28 20:34:31 -04:00
committed by GitHub
parent d71e9a78a1
commit 0f8fbfb8df

View File

@@ -15,7 +15,7 @@ class Qbo < ActiveRecord::Base
OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey'] OAUTH_CONSUMER_KEY = Setting.plugin_redmine_qbo['settingsOAuthConsumerKey']
OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret'] OAUTH_CONSUMER_SECRET = Setting.plugin_redmine_qbo['settingsOAuthConsumerSecret']
::QB_OAUTH_CONSUMER = OAuth::Consumer.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, { $qb_oauth_consumer = OAuth::Consumer.new(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, {
:site => "https://oauth.intuit.com", :site => "https://oauth.intuit.com",
:request_token_path => "/oauth/v1/get_request_token", :request_token_path => "/oauth/v1/get_request_token",
:authorize_url => "https://appcenter.intuit.com/Connect/Begin", :authorize_url => "https://appcenter.intuit.com/Connect/Begin",
@@ -31,7 +31,7 @@ class Qbo < ActiveRecord::Base
def self.get_oauth_consumer def self.get_oauth_consumer
# Quickbooks Config Info # Quickbooks Config Info
return QB_OAUTH_CONSUMER return $qb_oauth_consumer
end end
# Get a quickbooks base object for type # Get a quickbooks base object for type