Module: DeviseG5Authenticatable::UrlHelpers
- Defined in:
- lib/devise_g5_authenticatable/controllers/url_helpers.rb
Overview
Routing helpers for G5 omniuath routes
Instance Method Summary collapse
- #g5_authorize_path(resource_or_scope, *args) ⇒ Object
- #g5_callback_path(resource_or_scope, *args) ⇒ Object
Instance Method Details
#g5_authorize_path(resource_or_scope, *args) ⇒ Object
6 7 8 9 |
# File 'lib/devise_g5_authenticatable/controllers/url_helpers.rb', line 6 def (resource_or_scope, *args) scope = Devise::Mapping.find_scope!(resource_or_scope) _devise_route_context.send("#{scope}_g5_authorize_path", *args) end |
#g5_callback_path(resource_or_scope, *args) ⇒ Object
11 12 13 14 |
# File 'lib/devise_g5_authenticatable/controllers/url_helpers.rb', line 11 def g5_callback_path(resource_or_scope, *args) scope = Devise::Mapping.find_scope!(resource_or_scope) _devise_route_context.send("#{scope}_g5_callback_path", *args) end |