Correct indentation in readme, fixed display of social accounts in profile
This commit is contained in:
parent
07aa6e5963
commit
98cf0ae338
|
@ -10,4 +10,10 @@ module OauthHelper
|
|||
def enabled_oauth_providers
|
||||
Devise.omniauth_providers
|
||||
end
|
||||
|
||||
def enabled_social_providers
|
||||
enabled_oauth_providers.select do |name|
|
||||
[:twitter, :github, :google_oauth2].include?(name.to_sym)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
%legend Social Accounts
|
||||
.oauth_select_holder
|
||||
%p.hint Tip: Click on icon to activate sigin with one of the following services
|
||||
- User.omniauth_providers.each do |provider|
|
||||
- enabled_social_providers.each do |provider|
|
||||
%span{class: oauth_active_class(provider) }
|
||||
= link_to authbutton(provider, 32), omniauth_authorize_path(User, provider)
|
||||
|
||||
|
|
Loading…
Reference in New Issue