Hi guys

Seeing `composed_of` removed I put together a quick proof-of-concept 
ValueObject implementation on top of ActiveModel and ActiveRecord 
`serialize`.

https://gist.github.com/3070184

Features:
- VO's are immutable
- VO's are identified by their attributes
- VO's can be conveniently created from hashes (with a little extra work)

What do you think?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/zP51u2EmG2QJ.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to