We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8e9542 + 7b43cd0 commit 6cdfaf5Copy full SHA for 6cdfaf5
lib/spring/application.rb
@@ -100,7 +100,9 @@ def preload
100
# override the effect of config.cache_classes = true. We can then actually
101
# set config.cache_classes = false after loading the environment.
102
Rails::Application.initializer :initialize_dependency_mechanism, group: :all do
103
- ActiveSupport::Dependencies.mechanism = :load
+ if ActiveSupport::Dependencies.respond_to?(:mechanism=)
104
+ ActiveSupport::Dependencies.mechanism = :load
105
+ end
106
end
107
108
require Spring.application_root_path.join("config", "environment")
0 commit comments