Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate to_h and to_legacy_hash #37231

Merged
merged 1 commit into from Sep 18, 2019

Conversation

eileencodes
Copy link
Member

These should have been deprecated when I added them but for some reason
I didn't.

As we move away from passing hashes around we no longer need these
methods, and since we no longer use configuration hashes as database
configuration we can deprecate this in favor of using the database
configuration objects and access the connection hashes from there.

cc/ @seejohnrun @casperisfine @matthewd @rafaelfranca

These should have been deprecated when I added them but for some reason
I didn't.

As we move away from passing hashes around we no longer need these
methods, and since we no longer use configuration hashes as database
configuration we can deprecate this in favor of using the database
configuration objects and access the connection hashes from there.

Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
@eileencodes eileencodes added this to the 6.1.0 milestone Sep 18, 2019
@eileencodes eileencodes self-assigned this Sep 18, 2019
@sikachu
Copy link
Member

sikachu commented Sep 18, 2019

Are to_h and to_legacy_hash considered a public API? Do we need a CHANGELOG for this?

@seejohnrun
Copy link
Member

seejohnrun commented Sep 18, 2019

👋 @sikachu to_h has been deprecated in this PR and to_legacy_hash has been removed entirely but was previously :nodoc:.

👍 on a CHANGELOG entry for to_h deprecation 🎉

@eileencodes eileencodes merged commit 3a77fca into rails:master Sep 18, 2019
@eileencodes eileencodes deleted the deprecate-to_legacy_hash branch September 18, 2019 21:13
@eileencodes
Copy link
Member Author

@seejohnrun can you send a changelog entry? I can't push code right now 😅

seejohnrun added a commit to seejohnrun/rails that referenced this pull request Sep 18, 2019
We deprecated `to_h` in rails#37231, and
this commit adds the appropriate `CHANGELOG` entry!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants