Skip to content
This repository
Browse code

Reverted build_original_fullpath method, as per discussion at https:/…

  • Loading branch information...
commit 2d62334ae69b008a0c1972fc057d08f5a0abe659 1 parent c0dafb6
Nathan Broadbent authored

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 10  railties/lib/rails/application.rb
10  railties/lib/rails/application.rb
@@ -290,7 +290,15 @@ def initialize_console #:nodoc:
290 290
     end
291 291
 
292 292
     def build_original_fullpath(env)
293  
-      ["#{env["SCRIPT_NAME"]}#{env["PATH_INFO"]}", env["QUERY_STRING"]].reject(&:blank?).join("?")
  293
+      path_info    = env["PATH_INFO"]
  294
+      query_string = env["QUERY_STRING"]
  295
+      script_name  = env["SCRIPT_NAME"]
  296
+
  297
+      if query_string.present?
  298
+        "#{script_name}#{path_info}?#{query_string}"
  299
+      else
  300
+        "#{script_name}#{path_info}"
  301
+      end
294 302
     end
295 303
   end
296 304
 end

0 notes on commit 2d62334

Please sign in to comment.
Something went wrong with that request. Please try again.