diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 13:10:09 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-18 14:43:50 +0400 |
commit | 0b512af803d007852bcba40c75203e0e45dda177 (patch) | |
tree | d85179b7bf98fb9de7cd7c6d7d7557dfe8db0939 /lib | |
parent | 29f70acc987abe0b188ef187c70f179088d79589 (diff) |
Milestone uses StateMachine now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/milestones.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/milestones.rb b/lib/api/milestones.rb index 6aca9d01b09..eaf0d37c18b 100644 --- a/lib/api/milestones.rb +++ b/lib/api/milestones.rb @@ -59,14 +59,14 @@ module Gitlab # title (optional) - The title of a milestone # description (optional) - The description of a milestone # due_date (optional) - The due date of a milestone - # closed (optional) - The status of the milestone + # state (optional) - The status of the milestone (close|activate) # Example Request: # PUT /projects/:id/milestones/:milestone_id put ":id/milestones/:milestone_id" do authorize! :admin_milestone, user_project @milestone = user_project.milestones.find(params[:milestone_id]) - attrs = attributes_for_keys [:title, :description, :due_date, :closed] + attrs = attributes_for_keys [:title, :description, :due_date, :state_event] if @milestone.update_attributes attrs present @milestone, with: Entities::Milestone else |