Module: Devise::OmniAuth::UrlHelpers

Defined in:
lib/devise/omniauth/url_helpers.rb

Instance Method Summary collapse

Instance Method Details

#omniauth_authorize_path(resource_or_scope, provider, *args) ⇒ Object



4
5
6
7
# File 'lib/devise/omniauth/url_helpers.rb', line 4

def omniauth_authorize_path(resource_or_scope, provider, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  _devise_route_context.send("#{scope}_#{provider}_omniauth_authorize_path", *args)
end

#omniauth_authorize_url(resource_or_scope, provider, *args) ⇒ Object



9
10
11
12
# File 'lib/devise/omniauth/url_helpers.rb', line 9

def omniauth_authorize_url(resource_or_scope, provider, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  _devise_route_context.send("#{scope}_#{provider}_omniauth_authorize_url", *args)
end

#omniauth_callback_path(resource_or_scope, provider, *args) ⇒ Object



14
15
16
17
# File 'lib/devise/omniauth/url_helpers.rb', line 14

def omniauth_callback_path(resource_or_scope, provider, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  _devise_route_context.send("#{scope}_#{provider}_omniauth_callback_path", *args)
end

#omniauth_callback_url(resource_or_scope, provider, *args) ⇒ Object



19
20
21
22
# File 'lib/devise/omniauth/url_helpers.rb', line 19

def omniauth_callback_url(resource_or_scope, provider, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  _devise_route_context.send("#{scope}_#{provider}_omniauth_callback_url", *args)
end