Sha256: 975b99408a1d013287036af24243b8a8b7b355b4782a88cd2e1a12a2ce59bc89
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
module TableGo module Helpers def table_go_for(collection, model_klass, options = {}, &block) if request && request.format.csv? capture { TableGo.render_csv(collection, model_klass, options, &block).html_safe } else capture { TableGo.render_html(collection, model_klass, self, options, &block) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.1.9 | lib/table_go/helpers.rb |