Merge pull request #311 from differentreality/openid
Only show openid options if providers are set in User model.
This commit is contained in:
commit
9a3451af4f
6 changed files with 32 additions and 25 deletions
|
|
@ -2,7 +2,7 @@ module Users
|
|||
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
skip_before_filter :verify_authenticity_token
|
||||
|
||||
[:novell, :google, :facebook, :twitter].each do |provider|
|
||||
User.omniauth_providers.each do |provider|
|
||||
define_method(provider) { handle(provider) }
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue