In past episodes we’ve talked about the Whole Value pattern for fully representing entity attributes. And we’ve talked about how to implement it in Rails. But what if fully representing an attribute means it might take on one of several different data types?
In today’s episode, guest chef Corey Haines joins us for part one of a two-part series on polymorphic attributes in Rails. Today, he’s going to show us how to use custom attribute types to load and store complex structured data. Enjoy!
Corey has also generously offered a 45% discount on his book Understanding The Four Rules of Simple Design to subscribers—see details after the episode script!