Add search option for issue #2104
This commit is contained in:
@@ -379,6 +379,10 @@ class Artist < ActiveRecord::Base
|
|||||||
q = q.where("creator_id = ?", params[:creator_id].to_i)
|
q = q.where("creator_id = ?", params[:creator_id].to_i)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if params[:empty_only] == "true"
|
||||||
|
q = q.joins(:tag).where("tags.post_count = 0")
|
||||||
|
end
|
||||||
|
|
||||||
q
|
q
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user