Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2d62334ae69b008a0c1972fc057d08f5a0abe659 1 parent c0dafb6
@ndbroadbent ndbroadbent authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 railties/lib/rails/application.rb
View
10 railties/lib/rails/application.rb
@@ -290,7 +290,15 @@ def initialize_console #:nodoc:
end
def build_original_fullpath(env)
- ["#{env["SCRIPT_NAME"]}#{env["PATH_INFO"]}", env["QUERY_STRING"]].reject(&:blank?).join("?")
+ path_info = env["PATH_INFO"]
+ query_string = env["QUERY_STRING"]
+ script_name = env["SCRIPT_NAME"]
+
+ if query_string.present?
+ "#{script_name}#{path_info}?#{query_string}"
+ else
+ "#{script_name}#{path_info}"
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.