We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e32636 commit dfcc60cCopy full SHA for dfcc60c
app/models/better_together/event.rb
@@ -36,12 +36,12 @@ class Event < ApplicationRecord
36
}
37
38
scope :upcoming, lambda {
39
- start_query = arel_table[:starts_at].gteq(DateTime.now)
+ start_query = arel_table[:starts_at].gteq(Time.current)
40
where(start_query)
41
42
43
scope :past, lambda {
44
- start_query = arel_table[:starts_at].lt(DateTime.now)
+ start_query = arel_table[:starts_at].lt(Time.current)
45
46
47
0 commit comments