Skip to content

Instantly share code, notes, and snippets.

@jstotz
Created September 13, 2011 19:00
Show Gist options
  • Save jstotz/1214721 to your computer and use it in GitHub Desktop.
Save jstotz/1214721 to your computer and use it in GitHub Desktop.
if row[:item_properties]
item_properties = JSON.parse(row[:item_properties])
item_property_array = item_property_columns.map {|c| item_properties[c]}
else
item_property_array = item_property_columns.size.times.map { nil }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment