lib/lalala/engine.rb in lalala-4.0.0.dev.162 vs lib/lalala/engine.rb in lalala-4.0.0.dev.165
- old
+ new
@@ -7,9 +7,18 @@
config.lalala = ActiveSupport::OrderedOptions.new
config.lalala.i18n = ActiveSupport::OrderedOptions.new
config.lalala.i18n.adapter = nil
+ initializer "lalala.migrations" do |app|
+ app.class.configure do
+ if app.class.to_s == "Dummy::Application"
+ else
+ config.paths['db/migrate'] += Lalala::Engine.paths['db/migrate'].existent
+ end
+ end
+ end
+
initializer "lalala.threadsafe" do |app|
unless Rails.env.development? or Rails.env.test?
app.config.threadsafe!
end
end