Sha256: 2deb8ab79be9880a7f595cff80cabbb8061e784d923e5b5cca1bc1785a0f7a9e
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
module Trestle module TableHelper def table(collection, options={}, &block) options = options.reverse_merge(admin: admin) if defined?(admin) table = Table::Builder.build(options, &block) render "trestle/table/table", table: table, collection: collection end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.2 | app/helpers/trestle/table_helper.rb |
trestle-0.8.0 | app/helpers/trestle/table_helper.rb |