datamapper / dm-types

DataMapper plugin providing extra data types
http://datamapper.org/
MIT License
55 stars 80 forks source link

require 'json/pure' might lead to JSON being loaded twice #6

Closed skade closed 13 years ago

skade commented 13 years ago

Hi,

requiring 'json/pure' in the JSON Property might lead to JSON loaded twice, if the native version of the gem was already required before. This can lead to ugly warnings and arcane bugs such as this one:

http://prettystatemachine.blogspot.com/2010/09/typeerrors-in-tojson-make-me-briefly.html