instance method
eager_load!
Ruby on Rails 3.0.20
Since v3.0.20Signature
eager_load!()
No documentation comment.
Source
# 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
Defined in railties/lib/rails/engine.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine