Align project files with CodeHarbor

Since both projects are developed together and by the same team, we also want to have the same code structure and utility methods available in both projects. Therefore, this commit changes many files, but without a functional change.
This commit is contained in:
Sebastian Serth
2023-10-10 23:25:02 +02:00
parent fb3e8972d9
commit 99bd46af1a
112 changed files with 433 additions and 320 deletions

View File

@ -8,14 +8,13 @@ RailsAdmin.config do |config|
# config.authenticate_with do
# warden.authenticate! scope: :user
# end
# config.current_user_method(&:current_user)
config.current_user_method(&:current_user)
## == CancanCan ==
# config.authorize_with :cancancan
## == Pundit ==
# config.authorize_with :pundit
config.parent_controller = '::RailsAdminController'
config.authorize_with do
# Important! We need to check the authorization here, we skip Pundit checks in the RailsAdminController.
@ -30,6 +29,9 @@ RailsAdmin.config do |config|
### More at https://github.com/sferik/rails_admin/wiki/Base-configuration
config.parent_controller = '::RailsAdminController'
config.excluded_models = %w[Generators::TestingFrameworkAdapterGenerator]
## == Gravatar integration ==
## To disable Gravatar integration in Navigation Bar set to false
# config.show_gravatar = true
@ -51,8 +53,6 @@ RailsAdmin.config do |config|
end
end
config.excluded_models = %w[Generators::TestingFrameworkAdapterGenerator]
config.actions do
# mandatory
dashboard do