lib/feeder/engine.rb in feeder-0.3.0 vs lib/feeder/engine.rb in feeder-0.5.1
- old
+ new
@@ -2,9 +2,10 @@
module Feeder
class Engine < ::Rails::Engine
isolate_namespace Feeder
- config.active_record.observers ||= []
- config.active_record.observers << 'Feeder::FeedableObserver'
+ initializer 'tasks.factories', after: 'factory_girl.set_factory_paths' do
+ FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
+ end
end
end