fixes #2133
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class ArtistVersion < ActiveRecord::Base
|
||||
belongs_to :updater, :class_name => "User"
|
||||
belongs_to :artist
|
||||
attr_accessible :artist_id, :name, :is_active, :other_names, :group_name, :url_string, :is_banned, :updater_id, :updater_ip_addr
|
||||
|
||||
module SearchMethods
|
||||
def for_user(user_id)
|
||||
@@ -12,7 +13,7 @@ class ArtistVersion < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def search(params)
|
||||
q = scoped
|
||||
q = where("true")
|
||||
return q if params.blank?
|
||||
|
||||
if params[:name].present?
|
||||
|
||||
Reference in New Issue
Block a user