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 +4 -4
- data/README.md +4 -0
- data/lib/table_go.rb +2 -2
- data/lib/table_go/helpers.rb +1 -1
- data/lib/table_go/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
metadata.gz: ca0a48b52a72f1e6d4280ed7cdc92622dba71b19
|
4
|
+
data.tar.gz: cf79fc90e2b7926a42178768523eb0b3da9dbce2
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
metadata.gz: 5792a5aabc9e3696541a730d1d2ffff9e11da6e369ceedc995911414f8c88a9785e96000550f633949230b112c2fff93cd461f13976b34cda481b90b705c5256
|
7
|
+
data.tar.gz: 133644075dbedcd9e1fa3515728f38fc505240f2646cb6210cda249f611afb05f297886d316f492a968e9a70f62428bb73c75eb2ad415a8c4d869382c77deb4a
|
data/README.md
CHANGED
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,
|
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)
|
data/lib/table_go/helpers.rb
CHANGED
@@ -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
|
data/lib/table_go/version.rb
CHANGED
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
|
+
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-
|
13
|
+
date: 2013-12-03 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionpack
|