This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
preload_frameworks()
public
Preload all frameworks specified by the Configuration#frameworks. Used by
Passenger to ensure everything’s loaded before forking and to avoid
autoload race conditions in JRuby.
# File railties/lib/initializer.rb, line 278
def preload_frameworks
if configuration.preload_frameworks
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! if toplevel.respond_to?(:load_all!)
end
end
end