Skip to content

uninitialized constant OAuth (NameError) Did you mean? OAuth2 #583

@varun43in

Description

@varun43in

Hi guys,

I'm currently at quickbooks-ruby 1.0.1 and everything is working perfectly,
But the moment I use 1.0.3 or higher, I get this error message when starting the rails server:

uninitialized constant OAuth (NameError) Did you mean? OAuth2

It's referring to this line (/config/initializers/quickbooks.rb):

$qb_oauth_consumer = OAuth::Consumer.new(QB_KEY, QB_SECRET, {
                       :site                 => "https://oauth.intuit.com",
                       :request_token_path   => "/oauth/v1/get_request_token",
                       :authorize_url        => "https://appcenter.intuit.com/Connect/Begin",
                       :access_token_path    => "/oauth/v1/get_access_token"
                   })

reverting back to quickbooks-ruby 1.0.1 makes everything run properly again.

Am I missing some 'require' statement somewhere or does the piece of code above need updating?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions