diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-04 09:19:47 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-04 09:19:47 +0000 |
commit | 3d3b46f344748420a638f8a66745d974fa2c2748 (patch) | |
tree | af54ae3abd6f99cecb02107344c340d441fa2829 /app/models/group.rb | |
parent | e9ea520878b740ec0a66a2789f4955cfbdf17447 (diff) | |
download | gitlab-ce-3d3b46f344748420a638f8a66745d974fa2c2748.tar.gz |
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index d99af79b5fe..3cfe21ac93b 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -53,7 +53,7 @@ class Group < Namespace Gitlab::Database.postgresql? end - def sort(method) + def sort_by_attribute(method) if method == 'storage_size_desc' # storage_size is a virtual column so we need to # pass a string to avoid AR adding the table name |