Module: Devise::OmniAuth::UrlHelpers

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.define_helpers(mapping) ⇒ Object



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

def self.define_helpers(mapping)
end

Instance Method Details

#omniauth_authorize_path(resource_or_scope, *args) ⇒ Object



7
8
9
10
# File 'lib/devise/omniauth/url_helpers.rb', line 7

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

#omniauth_callback_path(resource_or_scope, *args) ⇒ Object



12
13
14
15
# File 'lib/devise/omniauth/url_helpers.rb', line 12

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