1
0
Fork 0
forked from gitea/nas

Autofix Rubocop Rails/RedundantForeignKey (#23731)

This commit is contained in:
Nick Schonning 2023-02-19 20:19:40 -05:00 committed by GitHub
parent 8ef09813a2
commit 597767a9f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 20 deletions

View file

@ -12,7 +12,7 @@ class FollowRecommendation < ApplicationRecord
self.primary_key = :account_id
belongs_to :account_summary, foreign_key: :account_id
belongs_to :account, foreign_key: :account_id
belongs_to :account
scope :localized, ->(locale) { joins(:account_summary).merge(AccountSummary.localized(locale)) }