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

@@ -4,8 +4,8 @@ class ModAction < ApplicationRecord
validates_presence_of :creator_id
attr_accessible :description
def self.search(params = {})
q = where("true")
def self.search(params)
q = super
return q if params.blank?
if params[:creator_id].present?