Mercurial > hg > soundsoftware-site
diff app/controllers/boards_controller.rb @ 931:ec1c49528f36 cannam_integration
Merge from branch "redmine-1.3"
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2012 15:04:58 +0100 |
parents | 5f33065ddc4b |
children | 433d4f72a19b |
line wrap: on
line diff
--- a/app/controllers/boards_controller.rb Wed Jun 27 14:56:14 2012 +0100 +++ b/app/controllers/boards_controller.rb Wed Jun 27 15:04:58 2012 +0100 @@ -65,7 +65,8 @@ verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } def new - @board = Board.new(params[:board]) + @board = Board.new + @board.safe_attributes = params[:board] @board.project = @project if request.post? && @board.save flash[:notice] = l(:notice_successful_create) @@ -74,7 +75,8 @@ end def edit - if request.post? && @board.update_attributes(params[:board]) + @board.safe_attributes = params[:board] + if request.post? && @board.save redirect_to_settings_in_projects end end