aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorVlatka Pavisic2017-04-25 14:10:37 +0200
committerVlatka Pavisic2017-04-25 14:10:45 +0200
commitd6d5884aed86156735cb1727f66d229664b675fd (patch)
treefa79160674cabcb19d2c918202d8d311f841e684 /config/routes.rb
parentcf73ce3becb8670524975e5561a498cae620017f (diff)
downloadchouette-core-d6d5884aed86156735cb1727f66d229664b675fd.tar.bz2
Refs #3033 : 403 page and ErrorsController tests
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb10
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