Convert request states and types lists to helper constants
Those are static values. By converting them to constants we don't have to pass instance variables between controllers and views. It also DRYs the code. In addition we freeze the constants to reduce object allocation.
Please register or sign in to comment