fix: env var ADMINS_GROUP_ENABLED optional
This commit is contained in:
parent
e9c143f226
commit
e9f2b56866
3 changed files with 6 additions and 5 deletions
|
@ -56,7 +56,7 @@ Rails.application.routes.draw do
|
|||
delete 'delete', on: :member
|
||||
end
|
||||
|
||||
if ENV.fetch('ADMINS_GROUP_ENABLED') == 'enabled'
|
||||
if ENV['ADMINS_GROUP_ENABLED'] == 'enabled' # can be removed if needed when EVERY PARTS of the feature will be merged / from env.example.optional
|
||||
resources :admins_group_managers, path: 'gestionnaires', only: [:index, :show, :edit, :update]
|
||||
|
||||
resources :admins_groups, path: 'groupe_administrateurs', only: [:index, :show, :new, :create, :edit, :update] do
|
||||
|
@ -473,7 +473,7 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
if ENV.fetch('ADMINS_GROUP_ENABLED') == 'enabled'
|
||||
if ENV['ADMINS_GROUP_ENABLED'] == 'enabled' # can be removed if needed when EVERY PARTS of the feature will be merged / from env.example.optional
|
||||
|
||||
#
|
||||
# Admins Group Manager (gestionnaire)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue