We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f7ec7d commit 65b59f8Copy full SHA for 65b59f8
1 file changed
app/models/topic.rb
@@ -147,11 +147,11 @@ def new_version_required?
147
false
148
end
149
150
- # Returns new topics since a date
+ # Returns new topics since a date for display in email digest.
151
def self.new_topics(since)
152
Topic
153
.visible
154
- .where("created_at >= ?", since)
+ .created_since(since)
155
.listable_topics
156
.topic_list_order
157
.includes(:user)
0 commit comments