* Use Devise registry to list available providers * Cleanups following Devise+Omniauth docs * More cleanups * Use helpers * More cleanups * Oops, forgot to remove these specs
11 lines
300 B
Ruby
11 lines
300 B
Ruby
module AuthenticationHelper
|
|
def authentication_provider(provider_name)
|
|
Authentication::Providers.get!(provider_name)
|
|
end
|
|
|
|
def authentication_enabled_providers
|
|
Authentication::Providers.enabled.map do |provider_name|
|
|
Authentication::Providers.get!(provider_name)
|
|
end
|
|
end
|
|
end
|