Skip to content

Fix Rails connection_config deprecation#160

Open
cody-collins wants to merge 1 commit intosolarwinds:main_aofrom
zearn:fix-deprecation
Open

Fix Rails connection_config deprecation#160
cody-collins wants to merge 1 commit intosolarwinds:main_aofrom
zearn:fix-deprecation

Conversation

@cody-collins
Copy link
Copy Markdown

ActiveRecord::Base.method_defined?(:connection_db_config) did not return true, even though it exists. Instead we need to use respond_to? which is what it was changed to in 5.0.0

#159

`ActiveRecord::Base.method_defined?(:connection_db_config)` did not
return true, even though it exists.  Instead we need to use
`respond_to?` which is what it was changed to in [5.0.0](https://github.com/solarwinds/appoptics-apm-ruby/blob/07ec75694d01fe9bf7fa182fce3957e8d7622028/lib/solarwinds_apm/frameworks/rails/inst/connection_adapters/utils5x.rb#L69)

solarwinds#159
@cody-collins cody-collins changed the base branch from main_nh to main_ao December 11, 2024 16:03
@cody-collins cody-collins reopened this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant