method

eager_load!

rails latest stable - Class: Rails::Engine

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

eager_load!()
public

No documentation available.

# File railties/lib/rails/engine.rb, line 433
    def eager_load!
      railties.all(&: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