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:
@ -1,4 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# ActiveSupport::Reloader.to_prepare do
|
||||
|
@ -1,4 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Add new mime types for use in respond_to blocks:
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user