Module: Devise::OmniAuth::UrlHelpers
- Defined in:
- lib/devise/omniauth/url_helpers.rb
Instance Method Summary collapse
- #omniauth_authorize_path(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_authorize_url(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_callback_path(resource_or_scope, provider, *args) ⇒ Object
- #omniauth_callback_url(resource_or_scope, provider, *args) ⇒ Object
Instance Method Details
#omniauth_authorize_path(resource_or_scope, provider, *args) ⇒ Object
6 7 8 9 |
# File 'lib/devise/omniauth/url_helpers.rb', line 6 def (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
11 12 13 14 |
# File 'lib/devise/omniauth/url_helpers.rb', line 11 def (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
16 17 18 19 |
# File 'lib/devise/omniauth/url_helpers.rb', line 16 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
21 22 23 24 |
# File 'lib/devise/omniauth/url_helpers.rb', line 21 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 |