OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/controllers/rb_sprints_controller.rb

20 lines
659 B

# Responsible for exposing sprint CRUD. It SHOULD NOT be used
# for displaying the taskboard since the taskboard is a management
# interface used for managing objects within a sprint. For
# info about the taskboard, see RbTaskboardsController
class RbSprintsController < RbApplicationController
unloadable
def update
attribs = params.select{|k,v| k != 'id' and Sprint.column_names.include? k }
attribs = Hash[*attribs.flatten]
result = @sprint.update_attributes attribs
status = (result ? 200 : 400)
respond_to do |format|
format.html { render :partial => "sprint", :status => status, :object => @sprint }
end
end
end