json_record
json_record copied to clipboard
Handle degenerate forms of json emptiness
When the json is %q[""] or %q[''], json_record was barfing after parsing the json, expecting the decoded thing to be a hash already. Fixed.
Test ran fine on ActiveRecord 3 against master, but I needed to apply it to active_record_2 branch, so I made it. It seems to work fine on both versions of AR simply with a cherry-pick.