Sometimes model attributes need to have more structure than a simple string or number. In part 1 of a 2-part series on ActiveRecord polymorphic attributes, guest chef Corey Haines demonstrates how to represent complex attributes with custom types.
Oop, this content isn't available to visitors. Please register or
log in to continue!
Or you could purchase this course.
Responses