-
Notifications
You must be signed in to change notification settings - Fork 26
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
Suppress warning in the one test where we call to_time #2642
Conversation
@mo-nathan: |
@mo-nathan @JoeCohen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It passes for me locally.
(with ActiveSupport.to_time_preserves_timezone = true
in test_blocked_ips
).
I think they are only suggesting setting it if you're using it. It makes no difference for us outside of exactly that one test since we don't use it production code. I see no reason to not just ride with whatever the Rails maintainers think is the default since we really don't care. |
Still sounds like it should probably be in config/application.rb to prevent a deprecation warning in case we use to_time in some other test in the future. |
I think Nimmo and I are aligned on this approach. Haven't heard from @JoeCohen. I'll wait until this evening or tomorrow morning for more feedback. I'll go ahead and merge if I don't hear anything. |
Makes sense to me. (Sorry. I thought I had responded earlier.) |
Let's see if CI passes and if the code passes for all the other devs. If so, we should just merge this.