David Aldridge

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Super nice!

And since the enum has created scopes for billing and shipping, you can DRY those associations up a little with:

has_one :billing_address,  -> { merge(Address.billing) }, class_name: "Address"
has_one :shipping_address, -> { merge(Address.shipping) }, class_name: "Address"