json_record icon indicating copy to clipboard operation
json_record copied to clipboard

Add ability to serialize arbitrarily complex schemas into an ActiveRecord field. You get the benefits of a schemaless database but with all the features of ActiveRecord.

Results 5 json_record issues
Sort by recently updated
recently updated
newest added

Here is a proof of the bug: https://github.com/MichaelSp/json_record_bug You can switch in the Gemfile between the working and the non working version and than run: `rm Gemfile.lock && bundle install...

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.

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...

For all serialized keys I have to manually specify the values in all inputs. Somehow Rails form helpers just don't see them unless I put them in there explicitly. Could...

Given the following validator which resides in config/initializers ``` ruby class EmailFormatValidator < ActiveModel::EachValidator def validate_each(object, attribute, value) unless value =~ /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i object.errors[attribute] :email? do |network| network.validate :address, :email_format =>...