From df7e5682b692836384ccf37168e650dff17b27d1 Mon Sep 17 00:00:00 2001 From: Brad Seefeld Date: Tue, 8 Jan 2013 13:49:37 -0800 Subject: [PATCH] Match the current URL instead of trying to rebuild --- lib/rubycas-client-rails.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/rubycas-client-rails.rb b/lib/rubycas-client-rails.rb index 2f423bd..6757f3e 100644 --- a/lib/rubycas-client-rails.rb +++ b/lib/rubycas-client-rails.rb @@ -372,10 +372,8 @@ def read_service_url(controller) log.debug("Using explicitly set service url: #{config[:service_url]}") return config[:service_url] end - - params = controller.params.dup - params.delete(:ticket) - service_url = controller.url_for(params) + + service_url = controller.request.url log.debug("Guessed service url: #{service_url.inspect}") return service_url end