diff options
| author | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-14 14:44:27 +0100 |
|---|---|---|
| committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-14 15:22:06 +0100 |
| commit | 76bd09326fe070d4c865b6fbc1718673d096c178 (patch) | |
| tree | 51cdbf23ce1e1beeebc84b9e95a5b8f9eeb6ac66 /lib/api/commits.rb | |
| parent | 36fa5d660df96c49484cd27695da1df6e361eb8f (diff) | |
| download | gitlab-ce-76bd09326fe070d4c865b6fbc1718673d096c178.tar.gz | |
Use declared_params helper in APIgrapify-declared-params
Diffstat (limited to 'lib/api/commits.rb')
| -rw-r--r-- | lib/api/commits.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/commits.rb b/lib/api/commits.rb index 2f2cf769481..f412e1da1bf 100644 --- a/lib/api/commits.rb +++ b/lib/api/commits.rb @@ -53,7 +53,7 @@ module API post ":id/repository/commits" do authorize! :push_code, user_project - attrs = declared(params) + attrs = declared_params attrs[:source_branch] = attrs[:branch_name] attrs[:target_branch] = attrs[:branch_name] attrs[:actions].map! do |action| |
