Accept & set default value of coding questions

accept values pared in coding question create action
if not pared in, set default value.
Yes, it was because this line: @question.auto_graded =
!@assessment.is_mission?

On Tue, Sep 30, 2014 at 11:58 PM, Raymoond Tang <notifications@github.com>
wrote:

> In app/controllers/assessment/coding_questions_controller.rb:
>
> > @@ -9,6 +9,8 @@ def new
> >
> >    def create
> >      @question.auto_graded = !@assessment.is_mission?
> > +    @question.update_attributes(params[:assessment_coding_question])
>
> can you find out why ? instead of doing this, it's breaking the logic here.
> I think it's because of this line @question.auto_graded =
> !@assessment.is_mission?, overrides the the params's value. try to remove
> it, it should work differently.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Coursemology/coursemology.org/pull/228/files#r18226828>
> .
>