Sha256: a16b3102290507f715a64ecd820ae11cea5d8fb2e2b851ce00032d949a50d1a9
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
require 'foreman_bootdisk' module Bootdisk class Engine < ::Rails::Engine config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"] config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"] config.autoload_paths += Dir["#{config.root}/app/models/concerns"] initializer 'foreman_bootdisk.load_default_settings', :before => :load_config_initializers do |app| require_dependency File.expand_path("../../../app/models/setting/bootdisk.rb", __FILE__) if (Setting.table_exists? rescue(false)) end initializer "foreman_bootdisk.load_app_instance_data" do |app| app.config.paths['db/migrate'] += Bootdisk::Engine.paths['db/migrate'].existent end config.to_prepare do ConfigTemplate.send(:include, Bootdisk::ConfigTemplateExt) Host::Managed.send(:include, Bootdisk::HostExt) HostsController.send(:include, Bootdisk::HostsControllerExt) HostsHelper.send(:include, Bootdisk::HostsHelperExt) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_bootdisk-1.1.0 | lib/bootdisk/engine.rb |
foreman_bootdisk-1.0.0 | lib/bootdisk/engine.rb |