lib/unidom/party/engine.rb in unidom-party-1.7.2 vs lib/unidom/party/engine.rb in unidom-party-1.8

- old
+ new

@@ -1,9 +1,15 @@ +require 'unidom/common/yaml_helper' + module Unidom module Party class Engine < ::Rails::Engine isolate_namespace ::Unidom::Party + + 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