Dir[File.expand_path('../config/routes/*.rb', __dir__)].each do |file|
require_relative file
end
Created
March 19, 2021 14:59
-
-
Save lujanfernaud/7975a285df59558f69642b7dc3548e5c to your computer and use it in GitHub Desktop.
Ruby: Require All Files Within a Directory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment