Use safe_attributes= just like in #create. (#922)

This commit is contained in:
Jean-Philippe Lang 2012-03-06 19:52:10 +00:00 committed by Holger Just
parent 305df19ab7
commit 5de377c5ee
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ class ProjectsController < ApplicationController
def new
@issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position")
@trackers = Tracker.all
@project = Project.new(params[:project])
@project = Project.new
@project.safe_attributes = params[:project]
end
verify :method => :post, :only => :create, :render => {:nothing => true, :status => :method_not_allowed }