lib/grape/app.rb in grape-app-0.3.15 vs lib/grape/app.rb in grape-app-0.3.16
- old
+ new
@@ -71,10 +71,10 @@
private
def require_all(*args)
args = args + ['**', '*.rb']
- Dir[root.join(*args).to_s].each {|f| require f }
+ Dir[root.join(*args).to_s].sort.each {|f| require f }
end
def require_one(*args)
path = root.join(*args).to_s
require path if File.exists?("#{path}.rb")