Skip to content

Commit

Permalink
Don't attempt to load SettingsChange too early
Browse files Browse the repository at this point in the history
This is an attempt to reimplement ManageIQ#22853 since that was
reverted in ManageIQ#23038.
  • Loading branch information
jrafanie committed Jun 21, 2024
1 parent 44401af commit 13fc0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vmdb/settings/database_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def my_server
end

def resource_queryable?
ActiveRecord::Base.connectable? && ::SettingsChange.table_exists?
ActiveRecord::Base.connectable? && defined?(::SettingsChange) && ::SettingsChange.table_exists?
end
end
end
Expand Down

0 comments on commit 13fc0a3

Please sign in to comment.