lib/effective_developer/engine.rb in effective_developer-0.6.4 vs lib/effective_developer/engine.rb in effective_developer-0.6.5
- old
+ new
@@ -1,8 +1,11 @@
module EffectiveDeveloper
class Engine < ::Rails::Engine
engine_name 'effective_developer'
+ config.autoload_paths += Dir["#{config.root}/models/jobs/"]
+ config.eager_load_paths += Dir["#{config.root}/models/jobs/"]
+
# Set up our default configuration options.
initializer 'effective_developer.defaults', before: :load_config_initializers do |app|
# Set up our defaults, as per our initializer template
eval File.read("#{config.root}/config/effective_developer.rb")
end