diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-30 11:00:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-03 11:33:50 -0700 |
commit | 57d0da86b4ee35c254dce3b7ea926b09871e517b (patch) | |
tree | c80a7fd8d90f9a32e16fc1aa0a25917ed4ebcda9 /actionpack/lib/action_dispatch/routing | |
parent | c91648b107a967123e523393962e92f89e989dcf (diff) | |
download | rails-57d0da86b4ee35c254dce3b7ea926b09871e517b.tar.gz rails-57d0da86b4ee35c254dce3b7ea926b09871e517b.tar.bz2 rails-57d0da86b4ee35c254dce3b7ea926b09871e517b.zip |
add a test for missing "via" parameter
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 961c3afd91..fc658482dc 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -221,7 +221,7 @@ module ActionDispatch "If you want to expose your action to GET, use `get` in the router:\n" \ " Instead of: match \"controller#action\"\n" \ " Do: get \"controller#action\"" - raise msg + raise ArgumentError, msg end if via = options[:via] |