instance method set_load_path

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

set_load_path()

Set the $LOAD_PATH based on the value of Configuration#autoload_paths. Duplicates are removed.

Source
# File railties/lib/initializer.rb, line 240
    def set_load_path
      load_paths = configuration.autoload_paths + configuration.framework_paths
      load_paths.reverse_each { |dir| $LOAD_PATH.unshift(dir) if File.directory?(dir) }
      $LOAD_PATH.uniq!
    end

Defined in railties/lib/initializer.rb line 240 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Initializer

Type at least 2 characters to search.

↑↓ navigate · open · esc close