lib/homesteading_publisher/engine.rb in homesteading_publisher-0.0.10 vs lib/homesteading_publisher/engine.rb in homesteading_publisher-0.0.11
- old
+ new
@@ -1,5 +1,21 @@
module HomesteadingPublisher
class Engine < ::Rails::Engine
isolate_namespace HomesteadingPublisher
+
+ config.generators do |g|
+ g.test_framework :rspec, :fixture => false
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
+ g.assets false
+ g.helper false
+ end
+
+ initializer :append_migrations do |app|
+ unless app.root.to_s.match root.to_s
+ config.paths["db/migrate"].expanded.each do |expanded_path|
+ app.config.paths["db/migrate"] << expanded_path
+ end
+ end
+ end
+
end
end