Skip to content

Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response #12

@taiyop

Description

@taiyop

Hi,

I couldn't start rails app because of Gem Load Error is: uninitialized constant OmniAuth::OAuth2::Response.

environments

  • ginjo-omniauth-slack 2.5.0.pre10
  • omniauth-oauth2 1.6.0
  • oauth2 1.4.4
  • ruby 2.3.1
  • rails 5.2.2

When I comment out the following refine block, I could start it.

module OmniAuth
  module Slack
        
    module OAuth2Refinements
      refine OAuth2::Response do
        # TODO: This might not be used any more.
        def to_auth_hash
          Module.const_get('::OmniAuth::Slack::AuthHash').new(parsed)
        end
      end
    end

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