Skip to content

Instantly share code, notes, and snippets.

View mnin's full-sized avatar

Martin Wilhelmi mnin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mnin on github.
  • I am mnin (https://keybase.io/mnin) on keybase.
  • I have a public key whose fingerprint is 24C8 8503 E17A 977F C36E 9F3F 2794 4EDF 72D3 B741

To claim this, I am signing this object:

@mnin
mnin / multi_json.rb
Last active December 13, 2015 18:08
monkey patch to pass some options (e.g. create :create_additions for couch_potato) to the json adapter
# config/initializers/multi_json.rb
+ MultiJson.default_options = { create_additions: true }
# lib/gem_ext/multi_json/multi_json.rb
module MultiJson
# Decode a JSON string into Ruby.
#
# <b>Options</b>
#
# <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.