Sha256: 2e32c28d843e6ce0f1f653d06840cf99a42c91c34ec4bd5cd37758f85a417913
Contents?: true
Size: 281 Bytes
Versions: 4
Compression:
Stored size: 281 Bytes
Contents
module Netzke module Sequel module ComboboxOptions def netzke_combo_options_for(column, query = "") ds = query.empty? ? self : filter(column.to_sym.ilike("#{query}%")) ds.select(column.to_sym).distinct.all.map &column.to_sym end end end end
Version data entries
4 entries across 4 versions & 2 rubygems