lib/table_go/helpers.rb in table_go-0.2.4 vs lib/table_go/helpers.rb in table_go-0.2.5
- old
+ new
@@ -2,10 +2,10 @@
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
+ TableGo.render_csv(collection, model_klass, self, options, &block).html_safe
else
TableGo.render_html(collection, model_klass, self, options, &block)
end
end
end