Sha256: 8a15baeab59d20c330466eadfcb89b2d5c131d62442ab9586cb9ca9ab7d632bb
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module TableGo module Helpers def table_go_for(collection, model_klass, options = {}, &block) capture do if request && request.format.csv? TableGo.render_csv(collection, model_klass, self, options, &block).html_safe else TableGo.render_html(collection, model_klass, self, options, &block) end end end def table_rows_for(collection, model_klass, options = {}, &block) table_go_for(collection, model_klass, options.merge(:render_rows_only => true), &block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.2.6 | lib/table_go/helpers.rb |
table_go-0.2.5 | lib/table_go/helpers.rb |