ar_doc_store icon indicating copy to clipboard operation
ar_doc_store copied to clipboard

ActiveRecord document storage using postgres JSON column - persistent, schemaless virtual attributes, embedded models, oh my!

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

Perhaps this ought to be a no-no but if you define the `serializable_hash` method within an embeddable model, strange behavior ensues. Easy solution is to use a different method for...

bug

When having an attribute like ```ruby json_attribute colors, :string, multiple: true ``` then this field will still default to `nil`, instead of to an empty array (`[]`). This goes against...

Hi, Is there a way to configure the JSON Attributes in a Table/Model and not in the Model's Code? I try something like this but didn't work ```Ruby Atributos.all.map do...

Hi, embedding one model with `embeds_one` works fine! however following the example of `embeds_many :rooms `doesn't work as expected. Error message: `ArgumentError: Passing string to define a callback is not...

Load a model with data. Change a json backed attribute. Call the reload method on the model. The json backed attribute returns the same value as before.