search -> ransack
This commit is contained in:
@@ -20,7 +20,7 @@ module Dunlop::Ember::ApiBaseController
|
||||
|
||||
def index
|
||||
index_safeguard record_class
|
||||
result = record_scope.search(query).result
|
||||
result = record_scope.ransack(query).result
|
||||
result = result.includes(*FlatKeys.as_nested_structure(index_include_relations)) if index_include_relations.present?
|
||||
result = result.uniq if params[:uniq].present?
|
||||
if index_pagination?
|
||||
|
||||
Reference in New Issue
Block a user