lib/gris/generators/templates/scaffold/config/application.rb.tt in gris-0.1.6 vs lib/gris/generators/templates/scaffold/config/application.rb.tt in gris-0.1.7
- old
+ new
@@ -1,6 +1,13 @@
require File.expand_path('../boot', __FILE__)
+# autoload initalizers
+Dir['./config/initializers/**/*.rb'].map { |file| require file }
+
+# autoload app
+relative_load_paths = %w(app/endpoints app/presenters app/models)
+ActiveSupport::Dependencies.autoload_paths += relative_load_paths
+
module <%= app_name.classify %>
class Application < Gris::Application
# config.use_health_middleware = false
def self.instance(*)