@AntonKhorev commented on this pull request.
> + has_many :follows, -> { joins(:following).where(:users => { :status =>
> %w[active confirmed] }) }
+ has_many :followings, :through => :follows, :source => :following
Why `:following` and not `:followee`?
Currently `:follows` are right next to `:followings` and you have to know the
difference between these.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5261#pullrequestreview-2542527288
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5261/review/2542527...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev