table_go 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- data.tar.gz: e6ee92b29494a850af5b152318603b9b2fc33f94
4
- metadata.gz: 5c8759d782dc7907d1f190cc08bb0a3651108469
3
+ metadata.gz: ca0a48b52a72f1e6d4280ed7cdc92622dba71b19
4
+ data.tar.gz: cf79fc90e2b7926a42178768523eb0b3da9dbce2
5
5
  SHA512:
6
- data.tar.gz: ac16f30159744d31f6e67d776de04893d84fdb0d0fe0ad91aa61e0ad6bb42b3b08503412daa6ad851bc5add508386e46af3401aea7054652e4251cf74a5ccfca
7
- metadata.gz: 33b6aa743e509a43cb2b96580e4fd305f13135d7951cecaf29707a8d72aea320fc7e1d7e0622555a783bdba357ef8481edf0ee6ab1a24a49cfcac7de8f53b55a
6
+ metadata.gz: 5792a5aabc9e3696541a730d1d2ffff9e11da6e369ceedc995911414f8c88a9785e96000550f633949230b112c2fff93cd461f13976b34cda481b90b705c5256
7
+ data.tar.gz: 133644075dbedcd9e1fa3515728f38fc505240f2646cb6210cda249f611afb05f297886d316f492a968e9a70f62428bb73c75eb2ad415a8c4d869382c77deb4a
data/README.md CHANGED
@@ -78,6 +78,10 @@ example in HAML
78
78
 
79
79
  ## Changelog
80
80
 
81
+ #### 0.2.5
82
+
83
+ - fixed generate csv bug
84
+
81
85
  #### 0.2.4
82
86
 
83
87
  - new method: table_rows_for
data/lib/table_go.rb CHANGED
@@ -13,8 +13,8 @@ module TableGo
13
13
  render(collection, model_klass, Renderers::HtmlRenderer, template, options, &block)
14
14
  end
15
15
 
16
- def self.render_csv(collection, model_klass, options = {}, &block)
17
- render(collection, model_klass, Renderers::CsvRenderer, nil, options, &block)
16
+ def self.render_csv(collection, model_klass, template, options = {}, &block)
17
+ render(collection, model_klass, Renderers::CsvRenderer, template, options, &block)
18
18
  end
19
19
 
20
20
  def self.render(collection, model_klass, renderer_klass, template, options = {}, &block)
@@ -4,7 +4,7 @@ module TableGo
4
4
  def table_go_for(collection, model_klass, options = {}, &block)
5
5
  capture do
6
6
  if request && request.format.csv?
7
- TableGo.render_csv(collection, model_klass, options, &block).html_safe
7
+ TableGo.render_csv(collection, model_klass, self, options, &block).html_safe
8
8
  else
9
9
  TableGo.render_html(collection, model_klass, self, options, &block)
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module TableGo
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_go
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Gollnow
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-11-18 00:00:00 Z
13
+ date: 2013-12-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack