SyntaxFix
Write A Post
Hire A Developer
Questions
In Rails, you can do:
Dir[Rails.root.join('lib', 'ext', '*.rb')].each { |file| require file }
Update: Corrected with suggestion of @Jiggneshh Gohel to remove slashes.