Project

General

Profile

Defect #26564 » patch.diff

Sergey Gnuskov, 2017-07-28 10:56

View differences:

app/controllers/enumerations_controller.rb
105 105

  
106 106
  def enumeration_params
107 107
    # can't require enumeration on #new action
108
    params.permit(:enumeration => [:name, :active, :is_default])[:enumeration]
108
    params.permit(:enumeration => [:name, :active, :is_default, :position])[:enumeration]
109 109
  end
110 110
end
(1-1/2)