]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Use reports_count so that counter_cache works automatically.
[rails.git] / lib / auth.rb
1 module Auth
2   PROVIDERS = { "None" => "", "OpenID" => "openid" }.tap do |providers|
3     providers["Google"] = "google" if defined?(GOOGLE_AUTH_ID)
4     providers["Facebook"] = "facebook" if defined?(FACEBOOK_AUTH_ID)
5     providers["Windows Live"] = "windowslive" if defined?(WINDOWSLIVE_AUTH_ID)
6     providers["GitHub"] = "github" if defined?(GITHUB_AUTH_ID)
7     providers["Wikipedia"] = "wikipedia" if defined?(WIKIPEDIA_AUTH_ID)
8   end.freeze
9 end