Only show openid options if providers are set in User model.

This commit is contained in:
Stella Rouzi 2014-07-14 16:16:02 +03:00
parent 609f2fd564
commit be468be5d7
6 changed files with 32 additions and 25 deletions

View file

@ -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