diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-12 10:28:21 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-12 11:15:11 -0800 |
commit | 16ae08fff0f16b3f0eb7757e01aabb02b257bd35 (patch) | |
tree | ab8973ecad9ea148421437a7af1ab2dd060033fc /actionpack/lib/action_dispatch/routing | |
parent | 1d9c555297c15b6d5212e65c1afec718e043ce45 (diff) | |
download | rails-16ae08fff0f16b3f0eb7757e01aabb02b257bd35.tar.gz rails-16ae08fff0f16b3f0eb7757e01aabb02b257bd35.tar.bz2 rails-16ae08fff0f16b3f0eb7757e01aabb02b257bd35.zip |
use raise to create exceptions and to set the backtrace
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 03bfe178e5..683fa19380 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -450,7 +450,7 @@ module ActionDispatch end def raise_routing_error - raise ActionController::RoutingError.new("No route matches #{options.inspect}") + raise ActionController::RoutingError, "No route matches #{options.inspect}" end def different_controller? |