Sha256: f359064d79674d0d9e7882bb2b83688675d0d6ee2db5418e32ffc5e9b8f75169
Contents?: true
Size: 519 Bytes
Versions: 53
Compression:
Stored size: 519 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 end end; end
Version data entries
53 entries across 53 versions & 1 rubygems