initial commit

This commit is contained in:
Josh
2018-05-07 16:06:01 -04:00
commit 4037b6304e
125 changed files with 2493 additions and 0 deletions

View File

@ -0,0 +1,14 @@
module ApplicationHelper
# 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