Fix error template attribute creation

This commit is contained in:
Maximilian Grundke
2017-07-12 21:37:57 +02:00
parent 45614c5a8c
commit a9068ef1b7

View File

@ -81,6 +81,6 @@ class ErrorTemplateAttributesController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through. # Never trust parameters from the scary internet, only allow the white list through.
def error_template_attribute_params def error_template_attribute_params
params.fetch(:error_template_attribute, {}) params[:error_template_attribute].permit(:key, :description, :regex, :important)
end end
end end