diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-04 12:19:47 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-04 12:19:47 +0300 |
commit | 3d3b46f344748420a638f8a66745d974fa2c2748 (patch) | |
tree | af54ae3abd6f99cecb02107344c340d441fa2829 /app/controllers/concerns | |
parent | e9ea520878b740ec0a66a2789f4955cfbdf17447 (diff) |
[Rails5] Rename `sort` methods to `sort_by_attribute`
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/group_tree.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/group_tree.rb b/app/controllers/concerns/group_tree.rb index fafb10090ca..56770a17406 100644 --- a/app/controllers/concerns/group_tree.rb +++ b/app/controllers/concerns/group_tree.rb @@ -14,7 +14,7 @@ module GroupTree end @groups = @groups.with_selects_for_list(archived: params[:archived]) - .sort(@sort = params[:sort]) + .sort_by_attribute(@sort = params[:sort]) .page(params[:page]) respond_to do |format| |