Sha256: 539aba87b8dbd7dac80c336f619eb02b89e3c2ce89942997a267d3398f914c89
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 Bytes
Contents
module Iquest module SimpleTable module TableHelper def simple_table_for(*args) collection = args.first opts = args.extract_options! opts[:html] ||= {} opts[:html][:class] ||= ['filter-table'] opts[:html][:class] << ' ' if opts[:html][:class].is_a? String opts[:responsive] ||= true builder = SimpleTable::TableBuilder.new self, collection, opts yield builder builder.to_s end end end end
Version data entries
5 entries across 5 versions & 1 rubygems