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

fix: use Rails.application.deprecators.silence #86

Conversation

Nakanishi21
Copy link
Contributor

ActiveSupport::Deprecation.silence has been deprecated since Rails version 7.1 and above,

DEPRECATION WARNING: Calling silence on ActiveSupport::Deprecation is deprecated and will be removed from Rails (use Rails.application.deprecators.silence instead)

So if you have deprecators in Rails.application, make sure it is 7.1 or higher and use Rails.application.deprecators.silence. Otherwise, the process is the same as before.

ActiveSupport::Deprecation.silence has been deprecated since Rails version 7.1 and above, so fix to use Rails.application.deprecators.silence
@amatsuda
Copy link
Owner

@Nakanishi21 Good catch! Thank you!

@amatsuda amatsuda merged commit d9b2bed into amatsuda:master Nov 29, 2023
@shetty-tejas
Copy link

@amatsuda Can you add this to a release please? It seems that the latest version of the gem (0.9.9) doesn't have this commit and the deprecation notices have been plaguing the Rspec tests.

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

Successfully merging this pull request may close these issues.

None yet

3 participants