aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-09 23:15:35 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-09 23:15:35 -0300
commit20cf2dd0892d3d1b374d63d39d936ad60a0fb36e (patch)
treeb8d972be461bf1ae8b45d93a45fd619e159b06bd
parent4818fdd36bacff6e0488d00da160a9d0c398a66e (diff)
downloadrails-20cf2dd0892d3d1b374d63d39d936ad60a0fb36e.tar.gz
rails-20cf2dd0892d3d1b374d63d39d936ad60a0fb36e.tar.bz2
rails-20cf2dd0892d3d1b374d63d39d936ad60a0fb36e.zip
Execute the block when the controller doesn't exist
We should return when the contoller key is not present or if the controller doesn't exist and we didn't raised an error.
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index c97c8ba0f0..8138c4ee57 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -57,6 +57,7 @@ module ActionDispatch
controller_reference params.fetch(:controller) { yield }
rescue NameError => e
raise ActionController::RoutingError, e.message, e.backtrace if raise_on_name_error
+ yield
end
protected