lib/guts/engine.rb in guts-1.3.6 vs lib/guts/engine.rb in guts-1.4.0
- old
+ new
@@ -1,21 +1,22 @@
# Guts' module namespace
-module Guts
+module Guts
# Guts' engine class
class Engine < ::Rails::Engine
# Isolate Guts routes
isolate_namespace Guts
-
- # Autoload concerns
- config.autoload_paths += ["#{config.root}/app/concerns"]
-
+
+ # Autoload concerns and services
+ config.autoload_paths << "#{config.root}/app/concerns"
+ config.autoload_paths << "#{config.root}/app/services"
+
# Allow decorator usage for extending Guts
config.to_prepare do
Dir.glob("#{Rails.root}/app/decorators/*/guts/*_decorator*.rb").each do |c|
require_dependency(c)
end
end
-
+
# Load in our custom assets to precompile
config.assets.precompile << "#{config.root}/app/assets/javascripts/tinymce/plugins/guts_media/plugin.js"
end
end