Answers for "rails all files .rb"

0

how to require all .rb files in rails

Dir["/path/to/directory/*.rb"].each {|file| require file }
Posted by: Guest on June-01-2021

Browse Popular Code Answers by Language