Skip to content

Commit

Permalink
Remove unused scope
Browse files Browse the repository at this point in the history
  • Loading branch information
hf2186 committed Sep 12, 2018
1 parent 6f7401d commit 0f02340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/spree_social/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.activate
end

# Setup all OAuth providers
def self.init_provider(provider, scope='email')
def self.init_provider(provider)
begin
ActiveRecord::Base.connection_pool.with_connection(&:active?)
rescue
Expand All @@ -54,9 +54,9 @@ def self.init_provider(provider, scope='email')
setup_key_for(provider.to_sym, key, secret, scope)
end

def self.setup_key_for(provider, key, secret, scope)
def self.setup_key_for(provider, key, secret)
Devise.setup do |config|
config.omniauth provider, key, secret, setup: true, scope: scope, info_fields: 'email, name'
config.omniauth provider, key, secret, setup: true, info_fields: 'email, name'
end
end
end
Expand Down

0 comments on commit 0f02340

Please sign in to comment.