method
eager_load!
v3.0.9 -
Show latest stable
- Class:
Rails::Engine
eager_load!()public
No documentation available.
# File railties/lib/rails/engine.rb, line 134
def eager_load!
config.eager_load_paths.each do |load_path|
matcher = /\A#{Regexp.escape(load_path)}\/(.*)\.rb\Z/
Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
require_dependency file.sub(matcher, '\1')
end
end
end