From 87e0ea06cbc6bdfb281da8805b0221868341fee2 Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 24 Jan 2018 08:58:28 +0100 Subject: Add a toolbar for devs to easily manage permissions and features --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 6a6a7cb07..07370ee6d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -239,6 +239,10 @@ ChouetteIhm::Application.routes.draw do get '/help/(*slug)' => 'help#show' + if Rails.application.config.development_toolbar + post "/development_toolbar" => "development_toolbar#update_settings", as: :development_toolbar_update_settings + end + match '/404', to: 'errors#not_found', via: :all, as: 'not_found' match '/403', to: 'errors#forbidden', via: :all, as: 'forbidden' match '/422', to: 'errors#server_error', via: :all, as: 'unprocessable_entity' -- cgit v1.2.3