Class: G5Authenticatable::FailureApp
- Inherits:
-
Devise::FailureApp
- Object
- Devise::FailureApp
- G5Authenticatable::FailureApp
- Defined in:
- app/controllers/g5_authenticatable/failure_app.rb
Overview
Custom failure app that generates urls correctly within an isolated engine github.com/plataformatec/devise/issues/4127
Instance Method Summary collapse
Instance Method Details
#scope_url ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/g5_authenticatable/failure_app.rb', line 7 def scope_url opts = {} route = :"new_#{scope}_session_url" opts[:format] = request_format unless skip_format? config = Rails.application.config if config.try(:relative_url_root) opts[:script_name] = config.relative_url_root end failure_url(route, opts) end |