Sha256: 87c19ed9f58f0b312ddc2ffb90c865bbd5160be11e1016ad12b607c5513302e8
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module RademadeAdmin module Search class Searcher def initialize(model_info) @model_info = model_info end def search(search_conditions, is_related_list = false) query_adapter.apply_conditions(search_conditions, is_related_list) end def query_adapter @query_adapter ||= "RademadeAdmin::Search::#{@model_info.model_reflection.orm_type}".constantize.new(@model_info.model) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rademade_admin-0.0.1 | app/services/search/searcher.rb |