amend line_items controller in line with code climate suggestions