Revert "keep nil nil"

This reverts commit fb12f5de52.
This commit is contained in:
Raphael 2011-01-13 17:15:43 -08:00
parent fb12f5de52
commit 2f4be3c9c4

View file

@ -86,7 +86,7 @@ module DataConversion
def comments_json_to_csv model_hash
generic_json_to_csv(model_hash) do |hash|
model_hash[:mongo_attrs].map { |attr_name|
if attr_name == "youtube_titles" && hash[attr_name]
if attr_name == "youtube_titles"
hash[attr_name].to_yaml
else
hash[attr_name]
@ -162,7 +162,7 @@ module DataConversion
def posts_json_to_csv model_hash
generic_json_to_csv(model_hash) do |hash|
model_hash[:mongo_attrs].map { |attr_name|
if attr_name == "youtube_titles" && hash[attr_name]
if attr_name == "youtube_titles"
hash[attr_name].to_yaml
else
hash[attr_name]