mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Consider ApplicationController url_options in for PathChecker.
This commit is contained in:
parent
b4794e041b
commit
55fd7e3b0a
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@ module Devise
|
|||
class PathChecker
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
def self.default_url_options(*args)
|
||||
ApplicationController.default_url_options(*args)
|
||||
end
|
||||
|
||||
def initialize(env, scope)
|
||||
@current_path = "/#{env["SCRIPT_NAME"]}/#{env["PATH_INFO"]}".squeeze("/")
|
||||
@scope = scope
|
||||
|
|
Loading…
Add table
Reference in a new issue