Skip to content

Commit

Permalink
Refs #29991 - Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed May 14, 2024
1 parent d703d58 commit ca12ead
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true

# Eager load currently cannot be set due to: https://projects.theforeman.org/issues/31977
config.eager_load = true

# Configure static asset server for tests with Cache-Control for performance.
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/6_preload_stis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# E.g. Base.register_type(BMC)
# Some constants that use such classes may be defined before all the related classes/models are loaded and registered
# E.g. InterfaceTypeMapper::ALLOWED_TYPE_NAMES
Rails.autoloaders.main.eager_load_dir("#{Rails.root}/app/models/nic")
Rails.autoloaders.main.eager_load_dir(Rails.root.join('app', 'models', 'nic'))
end

0 comments on commit ca12ead

Please sign in to comment.