store_model icon indicating copy to clipboard operation
store_model copied to clipboard

Work with JSON-backed attributes as ActiveRecord-ish models

Results 26 store_model issues
Sort by recently updated
recently updated
newest added

Hi! Thank you for a really cool gem first of all. The issue raises when the model get Input type from GraphQL mutation and Rails defines it as an instance...

enhancement

I want to use a different StoreModel depending on another column in the parent model. For example, I have a model `Order` that has an attribute `provider_name` which can be...

enhancement

Hello, I was wondering, why during serialization my custom types don't get used to determine the json format: ```ruby class DateOrTimeType < ActiveRecord::Type::Value def type :json end def cast_value(value) case...

Hi @DmitryTsepelev, are you planning to add the `accept_nested_attributes_for` function to the store_model?

Is it possible to do something like this? ``` attribute :settings, Setting.to_type, alias: :user_settings ``` And then access the original jsonb through `settings`, but `user_settings` would return the StoreModel Object....

enhancement

Rails provides with `Rails::Secrets.encrypt("foo")` a way to securely encrypt information. Rails 7 provides a nice interface to it via `encrypts :my_attribute`. Is there some way, this could be used with...

enhancement

I have this `Step` store_model which may or may not contains any images. Just wondering if it's possible to add attachment(s) in a store_model.

enhancement

By default, store_model isn't persisted in DB, unless I change an attribute explicitly. What is the correct way to store default attributes in the DB? I have the following model:...

It seems like when handling unknown attributes for a `StoreModel.one_of` type, the keys of the backend get converted into symbols. See this example class: ``` class RestConfig include StoreModel::Model attribute...