Skip to content

Commit

Permalink
Merge pull request ManageIQ#23136 from agrare/fix_evm_database_host_e…
Browse files Browse the repository at this point in the history
…xception

Fix undefined method while getting database configuration
  • Loading branch information
jrafanie authored Aug 7, 2024
2 parents 2e03593 + d54aa80 commit c1c063b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/evm_database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def self.seed_classes(classes)
private_class_method :seed_classes

def self.host
(ActiveRecord::Base.configurations[ENV['RAILS_ENV']] || {})['host']
ActiveRecord::Base.configurations.find_db_config(Rails.env).host
end

def self.local?
Expand Down

0 comments on commit c1c063b

Please sign in to comment.