Fix #4149: Add missing post search options on applicable models.

This commit is contained in:
evazion
2019-09-01 13:10:37 -05:00
parent 1bb1b147ea
commit 67100f26eb
26 changed files with 27 additions and 54 deletions

View File

@@ -6,7 +6,7 @@ class NoteVersion < ApplicationRecord
def self.search(params)
q = super
q = q.search_attributes(params, :updater, :is_active, :post, :note_id)
q = q.search_attributes(params, :updater, :is_active, :post, :note_id, :x, :y, :width, :height, :body, :version)
q = q.text_attribute_matches(:body, params[:body_matches])
q.apply_default_order(params)