active_record_to_csv 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +11 -0
- data/lib/active_record_to_csv.rb +1 -0
- data/lib/active_record_to_csv/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -23,6 +23,12 @@ to_csv() returns the entire contents including the header ready to be written to
|
|
23
23
|
title,director_id
|
24
24
|
The Kids Are All Right,4
|
25
25
|
|
26
|
+
Note that #to_csv is called like a scope or query. The following will NOT give you the same results:
|
27
|
+
|
28
|
+
Movie.all.to_csv
|
29
|
+
|
30
|
+
This will use Ruby's Array#to_csv method.
|
31
|
+
|
26
32
|
== TODO
|
27
33
|
|
28
34
|
Options to specify columns to be included (currently, id and timestamp columns are excluded).
|
@@ -32,3 +38,8 @@ Options to specify columns to be included (currently, id and timestamp columns a
|
|
32
38
|
Tested with ActiveRecord v3.0.4
|
33
39
|
|
34
40
|
http://gem-testers.org/gems/active_record_to_csv
|
41
|
+
|
42
|
+
== Related gems
|
43
|
+
|
44
|
+
* https://github.com/ordinaryzelig/active_record_csv
|
45
|
+
* https://github.com/ordinaryzelig/orm_from_csv
|
data/lib/active_record_to_csv.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: active_record_to_csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jared Ning
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-03-01 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|