lib/unidom/action/engine.rb in unidom-action-1.16 vs lib/unidom/action/engine.rb in unidom-action-1.16.1
- old
+ new
@@ -1,20 +1,14 @@
-require 'unidom/common/yaml_helper'
-
module Unidom
module Action
class Engine < ::Rails::Engine
+ include Unidom::Common::EngineExtension
+
isolate_namespace ::Unidom::Action
- initializer :load_config_initializers do |app|
- Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root
- end
-
- 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: true, migration_enabled: true
end
end
end