Slide 17
Slide 17 text
ͳ͔ͥ
• ͑Rails::Engine.initializer set_load_path ʹ͋Γ·͢ɻ
# Add configured load paths to Ruby's load path, and remove
duplicate entries.
initializer :set_load_path, before: :bootstrap_hook do
_all_load_paths.reverse_each do |path|
$LOAD_PATH.unshift(path) if File.directory?(path)
end
$LOAD_PATH.uniq!
end