diff options
| author | Vlatka Pavisic | 2017-04-25 14:10:37 +0200 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-25 14:10:45 +0200 |
| commit | d6d5884aed86156735cb1727f66d229664b675fd (patch) | |
| tree | fa79160674cabcb19d2c918202d8d311f841e684 /config/routes.rb | |
| parent | cf73ce3becb8670524975e5561a498cae620017f (diff) | |
| download | chouette-core-d6d5884aed86156735cb1727f66d229664b675fd.tar.bz2 | |
Refs #3033 : 403 page and ErrorsController tests
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb index 538c069ed..5b9cf0ea8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -213,11 +213,9 @@ ChouetteIhm::Application.routes.draw do get '/help/(*slug)' => 'help#show' - if Rails.env.production? - get '404', to: 'errors#not_found' - get '403', to: 'errors#not_allowed' - get '422', to: 'errors#server_error' - get '500', to: 'errors#server_error' - end + match '/404', to: 'errors#not_found', via: :all + match '/403', to: 'errors#not_allowed', via: :all + match '/422', to: 'errors#server_error', via: :all + match '/500', to: 'errors#server_error', via: :all end |
