Rails: Modified purchase model