Skip to content

Commit

Permalink
Set rails_admin asset source
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Aug 25, 2023
1 parent c60fd80 commit 38ebd46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/rails_admin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RailsAdmin.config do |config|
config.main_app_name = ['TeSS', 'Administration']
config.asset_source = :sprockets

config.authenticate_with do
redirect_to main_app.root_path unless current_user.try(:is_admin?)
Expand Down

0 comments on commit 38ebd46

Please sign in to comment.