This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/app/helpers/application_helper.rb

16 lines
369 B
Ruby

module ApplicationHelper
include MeetingsHelper
# Gets all configured omniauth providers.
def configured_providers
Rails.configuration.providers.select do |provider|
Rails.configuration.send("omniauth_#{provider}")
end
end
# Generates the login URL for a specific provider.
def omniauth_login_url(provider)
"/auth/#{provider}"
end
end