active_record_to_csv 0.1.4 → 0.2.0
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 +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