1
0
Fork 0
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:
José Valim 2010-07-16 08:40:21 +02:00
parent b4794e041b
commit 55fd7e3b0a

View file

@ -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