lib/sinatra/omniauth.rb in sinatra_omniauth-0.0.0 vs lib/sinatra/omniauth.rb in sinatra_omniauth-0.1.0

- old
+ new

@@ -109,11 +109,13 @@ def self.registered app # Register OmniAuth Strategies and keys for all providers: app.use ::OmniAuth::Builder do app.settings.omniauth.each do |a| provider = a['provider'] + client_options = a[:client_options] + client_options = client_options ? {:client_options => client_options} : {} if key = a['key'] - provider provider, key, a['secret'], (a['client_options'] || {}) + provider provider, key, a['secret'], client_options else name = a['name'].downcase.gsub(/ /,' ') store = OpenID::Store::Filesystem.new(a['store']||'./tmp') provider provider, store, :name => name, :identifier => a['identifier'] end