lib/grape/app.rb in grape-app-0.8.8 vs lib/grape/app.rb in grape-app-0.9.0
- old
+ new
@@ -33,9 +33,10 @@
# Setup loader
loader.setup
# Load app
require_one 'app', 'api'
+ Zeitwerk::Loader.eager_load_all if Grape::App.config.eager_load
end
# @return [Grape::App::Configuration] the configuration
def config
@config ||= if respond_to?(:superclass) && superclass.respond_to?(:config)