fixes #1930
This commit is contained in:
@@ -27,6 +27,10 @@ class PostFlag < ActiveRecord::Base
|
||||
where("created_at <= ?", 3.days.ago)
|
||||
end
|
||||
|
||||
def for_creator(user_id)
|
||||
where("creator_id = ?", user_id)
|
||||
end
|
||||
|
||||
def search(params)
|
||||
q = scoped
|
||||
return q if params.blank?
|
||||
|
||||
Reference in New Issue
Block a user