lib/unidom/contact/china/engine.rb in unidom-contact-china-1.0.2 vs lib/unidom/contact/china/engine.rb in unidom-contact-china-1.0.3
- old
+ new
@@ -2,16 +2,16 @@
module Contact
module China
class Engine < ::Rails::Engine
+ include Unidom::Common::EngineExtension
+
isolate_namespace ::Unidom::Contact::China
- initializer :append_migrations do |app|
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
- end
+ enable_initializer enum_enabled: false, migration_enabled: true
end
end
end
-end
\ No newline at end of file
+end