mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make sure all autoload constants are pulled in when using config.threadsafe! [#1831 state:resolved]
This commit is contained in:
parent
dcc2407d99
commit
c96382a71a
1 changed files with 2 additions and 2 deletions
|
@ -132,10 +132,10 @@ module Rails
|
|||
add_gem_load_paths
|
||||
|
||||
require_frameworks
|
||||
preload_frameworks
|
||||
set_autoload_paths
|
||||
add_plugin_load_paths
|
||||
load_environment
|
||||
preload_frameworks
|
||||
|
||||
initialize_encoding
|
||||
initialize_database
|
||||
|
@ -270,7 +270,7 @@ module Rails
|
|||
configuration.frameworks.each do |framework|
|
||||
# String#classify and #constantize aren't available yet.
|
||||
toplevel = Object.const_get(framework.to_s.gsub(/(?:^|_)(.)/) { $1.upcase })
|
||||
toplevel.load_all!
|
||||
toplevel.load_all! if toplevel.respond_to?(:load_all!)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue