Merge branch 'issue_strong_param' into 'master'

Issue strong param

Fixes #1390
This commit is contained in:
Dmitriy Zaporozhets 2014-07-01 13:01:42 +00:00
commit 4e1f9e2b8b

View file

@ -42,6 +42,10 @@ class Projects::IssuesController < Projects::ApplicationController
end
def new
params[:issue] ||= ActionController::Parameters.new(
assignee_id: ""
)
@issue = @project.issues.new(issue_params)
respond_with(@issue)
end