decorator to add _link_rels method to a model