From 85c55ae41b48bfc89cd6eed9c1369c240a01868a Mon Sep 17 00:00:00 2001 From: thisisevan Date: Wed, 9 Sep 2015 16:49:08 -0500 Subject: [PATCH 1/2] Fixed instructions for using district_id in district picker --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c39b91..891c10e 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do provider :clever, ENV['CLEVER_CLIENT_ID'], ENV['CLEVER_CLIENT_SECRET'], :setup => lambda { |env| params = Rack::Utils.parse_query(env['QUERY_STRING']) - env['omniauth.strategy'].options[:client_options][:district_id] = params['district_id'] + env['omniauth.strategy'].options[:authorize_params][:district_id] = params['district_id'] } end ``` From 250cfb03e782ed833a90775137bab803248e628f Mon Sep 17 00:00:00 2001 From: Evan Kay Date: Fri, 1 Jul 2016 22:58:26 -0500 Subject: [PATCH 2/2] Support rails 5 --- omniauth-clever.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omniauth-clever.gemspec b/omniauth-clever.gemspec index 9e58e26..f1a0ad1 100644 --- a/omniauth-clever.gemspec +++ b/omniauth-clever.gemspec @@ -21,5 +21,5 @@ Gem::Specification.new do |gem| gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.1' + gem.add_runtime_dependency 'omniauth-oauth2', '> 1.1.1' end