You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #60 and #63, wondering if there's a way for .before and .after to return scope (do nothing) when the argument is nil, similar to .between_times.
between_times(start_time, nil) - same as after(start_time) between_times(nil, end_time) - same as before(end_time)
Current behavior is to default base and time range scopes to Time.zone.now, but would prefer that only apply to the time range scopes 😅
Current behavior
Event.after(nil)#=> returns all events after the current time
Desired behavior
Event.after(nil)#=> returns all events
The text was updated successfully, but these errors were encountered:
Similar to #60 and #63, wondering if there's a way for
.before
and.after
to return scope (do nothing) when the argument is nil, similar to.between_times
.Current behavior is to default base and time range scopes to Time.zone.now, but would prefer that only apply to the time range scopes 😅
Current behavior
Desired behavior
The text was updated successfully, but these errors were encountered: