Sha256: 42c20e1b48c96ff21810a0f8b148f86b66f1910b9cb97b084786bae09e8b1e7b
Contents?: true
Size: 373 Bytes
Versions: 4
Compression:
Stored size: 373 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.2.3 | lib/table_go/helpers.rb |
table_go-0.2.2 | lib/table_go/helpers.rb |
table_go-0.2.1 | lib/table_go/helpers.rb |
table_go-0.2.0 | lib/table_go/helpers.rb |