diff options
author | Alex Denisov <1101.debian@gmail.com> | 2012-09-16 21:08:57 +0400 |
---|---|---|
committer | Alex Denisov <1101.debian@gmail.com> | 2012-09-16 21:08:57 +0400 |
commit | b896880eb46c2b8167e2252d3656b5e38e35f6ec (patch) | |
tree | 0255ee4ee87e92d86c987741be165cfd7dcf58f7 /lib/api/milestones.rb | |
parent | 549c4c2202307608773a10d8ce9a7dc978537de4 (diff) |
Method name changed
Diffstat (limited to 'lib/api/milestones.rb')
-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 d5d3347a724..daaff940325 100644 --- a/lib/api/milestones.rb +++ b/lib/api/milestones.rb @@ -36,7 +36,7 @@ module Gitlab # Example Request: # POST /projects/:id/milestones post ":id/milestones" do - attrs = existed_attributes [:title, :description, :due_date] + attrs = attributes_for_keys [:title, :description, :due_date] @milestone = user_project.milestones.new attrs if @milestone.save present @milestone, with: Entities::Milestone @@ -60,7 +60,7 @@ module Gitlab authorize! :admin_milestone, user_project @milestone = user_project.milestones.find(params[:milestone_id]) - attrs = existed_attributes [:title, :description, :due_date, :closed] + attrs = attributes_for_keys [:title, :description, :due_date, :closed] if @milestone.update_attributes attrs present @milestone, with: Entities::Milestone else |