flatten belongs_to and customize fields