home_feed.rb 225 B

123456789101112
  1. # frozen_string_literal: true
  2. class HomeFeed < Feed
  3. def initialize(account)
  4. @account = account
  5. super(:home, account.id)
  6. end
  7. def regenerating?
  8. redis.exists?("account:#{@account.id}:regeneration")
  9. end
  10. end