diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-17 16:23:44 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-17 16:23:44 -0800 |
commit | 24d939afb9816f3de2ca247de82f96ca32de3612 (patch) | |
tree | c3474d39689cb30e0b52e4fbe0e33d602f108d47 /lib/api/groups.rb | |
parent | 417975ae2f0d5d87915aa448184494e0e8370edb (diff) | |
download | gitlab-ce-24d939afb9816f3de2ca247de82f96ca32de3612.tar.gz |
Remove Group#owner_id from API since it is not used any more
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 384a28e41f5..a92abd4b690 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -33,9 +33,9 @@ module API attrs = attributes_for_keys [:name, :path, :description] @group = Group.new(attrs) - @group.owner = current_user if @group.save + @group.add_owner(current_user) present @group, with: Entities::Group else render_api_error!("Failed to save group #{@group.errors.messages}", 400) |