Module: DeviseG5Authenticatable::UrlHelpers
- Defined in:
- lib/devise_g5_authenticatable/controllers/url_helpers.rb
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
3 4 5 6 |
# File 'lib/devise_g5_authenticatable/controllers/url_helpers.rb', line 3 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
8 9 10 11 |
# File 'lib/devise_g5_authenticatable/controllers/url_helpers.rb', line 8 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 |