diff options
author | abcang <abcang1015@gmail.com> | 2021-01-07 17:40:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 09:40:55 +0100 |
commit | efffdd3778fc960280c7677906ed43dae5a952b0 (patch) | |
tree | afc88388bd8d25a9bc9ecab6fe15adb9394c6921 /app/models/home_feed.rb | |
parent | 066dbe1e699775f59f02298c369225277aac234b (diff) |
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
Diffstat (limited to 'app/models/home_feed.rb')
-rw-r--r-- | app/models/home_feed.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/home_feed.rb b/app/models/home_feed.rb index 0fe9dae46..d6ebb5fa6 100644 --- a/app/models/home_feed.rb +++ b/app/models/home_feed.rb @@ -2,12 +2,11 @@ class HomeFeed < Feed def initialize(account) - @type = :home - @id = account.id @account = account + super(:home, account.id) end def regenerating? - redis.exists?("account:#{@id}:regeneration") + redis.exists?("account:#{@account.id}:regeneration") end end |