Add `Timeline` wrapper class

pull/32721/head
Matt Jankowski 2024-10-31 10:26:35 -04:00
parent 917a799c67
commit 048609cf0e
1 changed files with 11 additions and 0 deletions

11
app/lib/timeline.rb Normal file
View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
module Timeline
extend Redisable
module_function
def subscribed?(timeline)
redis.exists?("subscribed:#{timeline}")
end
end