Sha256: e01e7a9e6512f1b35c8cba42e45dcd6cb98f3b0c4f98db617078d2bbd6f10f87
Contents?: true
Size: 566 Bytes
Versions: 8
Compression:
Stored size: 566 Bytes
Contents
module Spider; module Components class SearchTable < Spider::Components::Table tag 'search-table' def prepare super params['q'] = nil if params['clear'] @scene.query = params['q'] end def prepare_queryset(qs) qs = super if (params['q']) qs.condition = qs.condition.and(@model.free_query_condition(params['q'])) end return qs end def run super end end end; end
Version data entries
8 entries across 8 versions & 1 rubygems