active_data
active_data copied to clipboard
Working with any data in AR style
The ActiveModel::Errors class has changed, keeping most of the high level API compatible, but some of the underlying implementation are not working anymore. The class `ActiveData::Model::Validations::NestedValidator` is not compatible with...
Consider a model with references inside embedded collection: ```ruby class Example include ActiveData::Model embeds_many :users do references_one :user end end ``` accessing `users` causes 1 model query per each element...
Association changes were applied before save, so validations were not working. Now validations will run as expected. - [ ] fix rubocop version - [ ] add specs for this...
``` class Foo embeds_one :subfoo do end end ``` Add an ability to use `Foo::Subfoo` directly, using `const_missing`.
I've typically used [Virtus](https://github.com/solnic/virtus) for form objects and mimicking an ActiveModel API in general. On the surface, the two libraries appear to have similar goals. I recommend adding a brief...
### Description When - running validations several times (not sure why exactly, but that sometimes happens in Granite) - having `:message` set explicitly in the options [This](https://github.com/pyromaniac/active_data/blob/master/lib/active_data/model/validations/nested.rb#L21) check: ```ruby to.import(error,...