app/services/search/searcher.rb in rademade_admin-0.0.1 vs app/services/search/searcher.rb in rademade_admin-0.0.2
- old
+ new
@@ -1,19 +1,20 @@
+# -*- encoding : utf-8 -*-
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)
+ def search(search_conditions)
+ query_adapter.apply_conditions(search_conditions)
end
def query_adapter
- @query_adapter ||= "RademadeAdmin::Search::#{@model_info.model_reflection.orm_type}".constantize.new(@model_info.model)
+ @query_adapter ||= "RademadeAdmin::Search::QueryAdapter::#{@model_info.model_reflection.orm_type}".constantize.new(@model_info.model)
end
end
end
-end
\ No newline at end of file
+end