aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/routing.rb')
-rw-r--r--actionpack/lib/action_controller/routing.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb
index 07c68e3574..7ea8f5be5e 100644
--- a/actionpack/lib/action_controller/routing.rb
+++ b/actionpack/lib/action_controller/routing.rb
@@ -224,7 +224,7 @@ module ActionController
else
relative_to = defaults[:controller] ? defaults[:controller].split('/')[0..-2].join('/') : ''
options[:controller] = relative_to.empty? ? options[:controller] : "#{relative_to}/#{options[:controller]}"
- defaults.delete(:action) unless options[:controller] == defaults[:controller]
+ defaults.delete(:action) if options.key?(:controller)
end
else
options[:controller] = defaults[:controller]
@@ -256,6 +256,6 @@ module ActionController
end
Routes = RouteSet.new
- #Routes.reload # Do this here, so that server will die on load if SyntaxError or whatnot.
+ Routes.reload # Server will die on load if SyntaxError
end
end \ No newline at end of file