Sha256: e16a6ad6b27f391b0bb91b92a707c65836f5ea206bec53ba2dcfb451b59f0c33
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
module Unidom::Common::EngineExtension extend ActiveSupport::Concern #included do |includer| #end module ClassMethods def enable_initializer(enum_enabled: false, migration_enabled: false) if enum_enabled require 'unidom/common/yaml_helper' initializer :load_config_initializers do |app| Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root end end if migration_enabled 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-common-1.8 | lib/unidom/common/engine_extension.rb |