Sha256: 4c0552ec90063f3fcfc35878cab047870ec08e7aa2703a9f5cf4aca1f91403c9
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 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, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.2.4 | lib/table_go/helpers.rb |