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

Add deprecated method redirects #7

Open
joshbuker opened this issue Apr 2, 2021 · 0 comments
Open

Add deprecated method redirects #7

joshbuker opened this issue Apr 2, 2021 · 0 comments
Milestone

Comments

@joshbuker
Copy link
Member

joshbuker commented Apr 2, 2021

Glorified note-to-self

Add deprecated methods that redirect to the new method names, e.g.

# @deprecated Please use {#digest} instead
def encrypt(password)
  warn "[DEPRECATION] `encrypt` is deprecated.  Please use `digest` instead."
  digest(password)
end

To be removed in version 1.1.0 following Rails convention of removing deprecated methods on the next minor patch after a major release.

ActiveSupport::Deprecation may be a preferred way to do this, worth looking into at least:
https://stackoverflow.com/a/17339794

@joshbuker joshbuker added this to the v0.1.0 milestone Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant