ActiveRecord's composed_of method
I’m rare to use AR’s composed_of
method, but always writing a method to override the default attributes to make conversion for database attributes.
Let’s have look at this simple exmpale:
I’m rare to use AR’s composed_of
method, but always writing a method to override the default attributes to make conversion for database attributes.
Let’s have look at this simple exmpale: