Skip to content

Instantly share code, notes, and snippets.

@jdunphy
Created May 21, 2009 19:06
Show Gist options
  • Save jdunphy/115652 to your computer and use it in GitHub Desktop.
Save jdunphy/115652 to your computer and use it in GitHub Desktop.
def merge_ad_data!
return unless adv_fields = @values.delete('AdvFields')
adv_fields = Zlib::GzipReader.new(
StringIO.new(Base64.decode64( adv_fields))).read
adv_fields = JSON.parse(adv_fields).map { |af| JSON.parse(af) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment