json_record icon indicating copy to clipboard operation
json_record copied to clipboard

Comment on automatic compression

Open charliemcelfresh opened this issue 13 years ago • 0 comments

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

charliemcelfresh avatar May 10 '12 00:05 charliemcelfresh