Skip to content

Commit

Permalink
Merge pull request Sorcery#22 from asmsuechan/fix-wrong-use-of-includ…
Browse files Browse the repository at this point in the history
…e-method

Fixes wrong use of include?()
  • Loading branch information
joshbuker authored Dec 5, 2016
2 parents ef20641 + 154d1c2 commit 5394c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sorcery/providers/linkedin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize
# Override included get_consumer method to provide authorize_path
def get_consumer
# Add access permissions to request token path
@configuration[:request_token_path] += '?scope=' + access_permissions.join('+') unless access_permissions.blank? or @configuration[:request_token_path].include? '?scope='
@configuration[:request_token_path] += '?scope=' + access_permissions.join('+') unless access_permissions.blank? or @configuration[:request_token_path].include?('?scope=')
::OAuth::Consumer.new(@key, @secret, @configuration)
end

Expand Down

0 comments on commit 5394c9a

Please sign in to comment.