Permalink
Browse files

no need to check for presence, script names can be blank

  • Loading branch information...
1 parent d08810e commit 67f815af058cf0a4dbf1dcea50eec2585cd7ee3a @tenderlove tenderlove committed May 13, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -658,8 +658,8 @@ def url_for(options)
recall = options.delete(:_recall)
- original_script_name = options.delete(:original_script_name).presence
- script_name = options.delete(:script_name).presence || _generate_prefix(options)
+ original_script_name = options.delete(:original_script_name)
+ script_name = options.delete(:script_name) || _generate_prefix(options)
if script_name && original_script_name
script_name = original_script_name + script_name

0 comments on commit 67f815a

Please sign in to comment.