Fix missing controllers for search[id]

This commit is contained in:
BrokenEagle
2018-01-13 10:01:30 -08:00
parent a8c4179083
commit ba7fadf6e9
4 changed files with 8 additions and 7 deletions

View File

@@ -6,8 +6,8 @@ class ArtistCommentaryVersion < ApplicationRecord
attr_accessible :post_id, :original_title, :original_description, :translated_title, :translated_description
def self.search(params)
q = where("true")
params = {} if params.blank?
q = super
return q if params.blank?
if params[:updater_id]
q = q.where("updater_id = ?", params[:updater_id].to_i)