Revert "Serialize youtube titles to yaml to ActiveRecord can read them"
This reverts commit b42bffa6fa.
This commit is contained in:
parent
2f4be3c9c4
commit
597a7a8a03
1 changed files with 2 additions and 14 deletions
|
|
@ -85,13 +85,7 @@ module DataConversion
|
||||||
|
|
||||||
def comments_json_to_csv model_hash
|
def comments_json_to_csv model_hash
|
||||||
generic_json_to_csv(model_hash) do |hash|
|
generic_json_to_csv(model_hash) do |hash|
|
||||||
model_hash[:mongo_attrs].map { |attr_name|
|
model_hash[:mongo_attrs].map { |attr_name| hash[attr_name] }
|
||||||
if attr_name == "youtube_titles"
|
|
||||||
hash[attr_name].to_yaml
|
|
||||||
else
|
|
||||||
hash[attr_name]
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -161,13 +155,7 @@ module DataConversion
|
||||||
|
|
||||||
def posts_json_to_csv model_hash
|
def posts_json_to_csv model_hash
|
||||||
generic_json_to_csv(model_hash) do |hash|
|
generic_json_to_csv(model_hash) do |hash|
|
||||||
model_hash[:mongo_attrs].map { |attr_name|
|
model_hash[:mongo_attrs].map { |attr_name| hash[attr_name] }
|
||||||
if attr_name == "youtube_titles"
|
|
||||||
hash[attr_name].to_yaml
|
|
||||||
else
|
|
||||||
hash[attr_name]
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
#has to handle the polymorphic stuff
|
#has to handle the polymorphic stuff
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue