active_record_to_csv 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -1
- data/lib/active_record_to_csv.rb +1 -1
- data/lib/active_record_to_csv/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -35,10 +35,12 @@ After a model object's attributes are collected, to_csv is called on the resulti
|
|
35
35
|
|
36
36
|
class Date
|
37
37
|
def to_csv
|
38
|
-
strftime('%Y
|
38
|
+
strftime('%Y-%m-%d')
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
Note that object.send(attribute_name) is used, so datetime fields will be returned as ActiveSupport::TimeWithZone objects.
|
43
|
+
|
42
44
|
== TODO
|
43
45
|
|
44
46
|
Options to specify columns to be included (currently, id and timestamp columns are excluded).
|
data/lib/active_record_to_csv.rb
CHANGED