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

25 lines
882 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
result = @sprint.update_attributes(params.slice(:name,
:start_date,
:effective_date))
status = (result ? 200 : 400)
respond_to do |format|
format.html { render :partial => "sprint", :status => status, :object => @sprint }
end
end
#overwrite load_project to load the sprint from the :id instead of :sprint_id
#which whill automatically also load the project
def load_project
load_sprint_and_project params[:id]
end
end