Skip to content

Commit

Permalink
More Rails work
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jul 30, 2022
1 parent 1c6aa5f commit a9e3ffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/concerns/fog_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ module FogExtensions
Fog::OpenStack::Compute::Flavor.include FogExtensions::Openstack::Flavor
end

if Foreman::Model::Vmware.available?
# TODO: Why is this undefined while other models are?
#if Foreman::Model::Vmware.available?
if false
require 'fog/vsphere'
require 'fog/vsphere/models/compute/cluster'
require 'fog/vsphere/models/compute/network'
Expand Down
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class Foreman::Consoletie < Rails::Railtie

module Foreman
class Application < Rails::Application
# TODO: Verify we can really use this
config.load_defaults 7.0

# Setup additional routes by loading all routes file from routes directory
Dir["#{Rails.root}/config/routes/**/*.rb"].each do |route_file|
config.paths['config/routes.rb'] << route_file
Expand Down

0 comments on commit a9e3ffc

Please sign in to comment.