diff --git a/lib/devise/failure_app.rb b/lib/devise/failure_app.rb index 783d2d6e..a66d53bd 100644 --- a/lib/devise/failure_app.rb +++ b/lib/devise/failure_app.rb @@ -105,9 +105,13 @@ module Devise end end + def route(scope) + :"new_#{scope}_session_url" + end + def scope_url opts = {} - route = :"new_#{scope}_session_url" + route = route(scope) opts[:format] = request_format unless skip_format? config = Rails.application.config