diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-24 13:30:53 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-24 13:35:26 +0100 |
commit | 9dfbfbb2d10dfc6297acff1b59dfbaf43b848d96 (patch) | |
tree | c503432eaef1c4c658b79c9b5e5e4d17d592c78f /lib/api/groups.rb | |
parent | a44c9b9e8e8dfbbc37056e812c3b263eb92b644b (diff) | |
download | gitlab-ce-9dfbfbb2d10dfc6297acff1b59dfbaf43b848d96.tar.gz |
Don't convert data which already is the target typeapi-no-convert
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 48ad3b80ae0..fc39fdf4b67 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -33,7 +33,7 @@ module API groups = groups.search(params[:search]) if params[:search].present? groups = groups.where.not(id: params[:skip_groups]) if params[:skip_groups].present? - groups = groups.reorder(params[:order_by] => params[:sort].to_sym) + groups = groups.reorder(params[:order_by] => params[:sort]) present paginate(groups), with: Entities::Group end |