lib/sinatra/omniauth.rb in sinatra_omniauth-0.2.0 vs lib/sinatra/omniauth.rb in sinatra_omniauth-0.2.1
- old
+ new
@@ -146,10 +146,10 @@
reject do|a|
a.id == @authentication_current.id
end
@authentications_possible = @authentications_possible.dup.
reject do |a|
- @authentications_available.detect{|p| p.provider == a['provider'] }
+ @authentications_available.detect{|p| p.provider.gsub(/[ _]/,'') == a['name'].downcase.gsub(/[ _]/,'') }
end
end
haml :auth
end