I just read
article… twice. He does a great job, but what I find really ugly
(so not Rails) is when I want to use ActiveRecord:Validations module
in my Value Object - I need to “stub out” some of the inner plumbing
to pretend I am really an ActiveRecord object.
Is this the best way to integrate Value Objects from aggregations into
Rails validation and error reporting? My googling so far turns up
more questions than answers.
The docs such as:
talk about a lot but not about validation.
Please show me there is a more elegant, DRY, declarative way to
realize this than lots of custom code or the module inclusion pattern
written up by Steve C…
Thanks…