json_record
json_record copied to clipboard
Comment on automatic compression
bdurand,
Thanks for this excellent gem. I'm in a situation where I'm writing json to a mysql db field that has type blob, but I still want it to be human readable / editable. So I commented out the line
@compressed = json_column.type == :binary
in json_field.rb
Maybe if other people have my same issue, you / I / someone can add the compression capability as an option when initializing that JsonField object, rather than making it happen automatically when the code senses a binary field.
Best,
Charlie McElfresh