use detail instead of detail_attributes, for compatibility