Fix reference to non existent column

This commit is contained in:
Toks
2014-03-06 21:45:36 -05:00
parent 5d5caf5eea
commit aeb961708e

View File

@@ -297,7 +297,7 @@ class Artist < ActiveRecord::Base
q = q.banned
when /status:active/
q = q.where("is_banned = false and is_deleted = false")
q = q.where("is_banned = false and is_active = true")
when /./
q = q.any_name_matches(params[:name])