users: replace scopes with associations.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
class ArtistCommentaryVersion < ApplicationRecord
|
||||
belongs_to :post
|
||||
belongs_to_updater
|
||||
scope :for_user, ->(user_id) {where("updater_id = ?", user_id)}
|
||||
|
||||
def self.search(params)
|
||||
q = super
|
||||
|
||||
Reference in New Issue
Block a user