fedibird-fe/app/models/home_feed.rb
abcang efffdd3778
Fix rubocop config and warnings (#15503)
* disable NewCops

* update TargetRubyVersion

* Fix Lint/MissingSuper for ActiveModelSerializers::Model

* Fix Lint/MissingSuper for feed

* Fix Lint/FloatComparison

* Do not use instance variables
2021-01-07 09:40:55 +01:00

12 lines
225 B
Ruby

# frozen_string_literal: true
class HomeFeed < Feed
def initialize(account)
@account = account
super(:home, account.id)
end
def regenerating?
redis.exists?("account:#{@account.id}:regeneration")
end
end