Skip to content

Instantly share code, notes, and snippets.

@mdeiters
Created June 29, 2010 16:08
Show Gist options
  • Save mdeiters/457416 to your computer and use it in GitHub Desktop.
Save mdeiters/457416 to your computer and use it in GitHub Desktop.
raise 'Rails 2.3.2 to_json method fails if you attempt to load JSON gem before active support is loaded' if defined?(JSON)
require 'json/add/rails'
require 'json/add/core'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment