-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
:time
option for #touch
#18905
Comments
@andyatkinson A number of our Core Team members and Committers are mentoring students for Facebook's Open Academy and giving them tasks to work. Your interest is appreciated, but we have reserved the rights for the students (even if anyone in particular hasn't been picked yet). Also @jeremy's comment here explains the relationship between these two issues. I hope you won't be deterred 💛 |
@kaspth I'm an aspiring Rails contributor. If you see an issue that you think is not appropriate for the Open Academy group, please ping me about it, I'd like to take a look. Thanks! |
Hi, I'm working on this issue and am wondering if there's a clean way to have optional arguments in ruby? |
#touch
always uses the current time. If we want to touch with a different time, we have to do it ourselves. That makes it awkward to touch a record to match another record, to touch a record with current transaction time, to touch with an associated file's mtime, or to touch with a previous time reflecting an earlier occurrence.We can take an optional
time:
argument that defaults tocurrent_time_from_proper_timezone
to make these cases possible.The text was updated successfully, but these errors were encountered: