lib/devise/path_checker.rb in devise-2.0.0.rc vs lib/devise/path_checker.rb in devise-2.0.0.rc2

- old
+ new

@@ -1,10 +1,14 @@ module Devise class PathChecker include Rails.application.routes.url_helpers def self.default_url_options(*args) - ApplicationController.default_url_options(*args) + if defined?(ApplicationController) + ApplicationController.default_url_options(*args) + else + {} + end end def initialize(env, scope) @current_path = "/#{env["SCRIPT_NAME"]}/#{env["PATH_INFO"]}".squeeze("/") @scope = scope