otwarchive-symphonyarchive/config/initializers/archive_config/settings_for_admin.rb

9 lines
318 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
Rails.application.config.after_initialize do
# If we have no database, fall through to rescue
ActiveRecord::Base.connection
AdminSetting.default if AdminSetting.table_exists?
rescue ActiveRecord::ConnectionNotEstablished
rescue ActiveRecord::NoDatabaseError
# This happens if we are running rake db:create
end