Rubocop autocorrections
This commit is contained in:
@@ -5,7 +5,7 @@ module Followable
|
||||
has_many :follows, as: :followable, dependent: :destroy
|
||||
has_many :followers, through: :follows, source: :user
|
||||
|
||||
scope :followed_by_user, -> (user){
|
||||
scope :followed_by_user, ->(user){
|
||||
joins(:follows).where("follows.user_id = ?", user.id)
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user