Commit 52e85c45 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Fix a deprecation warning

> Delegating as to arel is deprecated and will be removed in Rails 6.0
parent 4e342eaf
...@@ -126,7 +126,7 @@ class Group < Namespace ...@@ -126,7 +126,7 @@ class Group < Namespace
def visible_to_user_arel(user) def visible_to_user_arel(user)
groups_table = self.arel_table groups_table = self.arel_table
authorized_groups = user.authorized_groups.as('authorized') authorized_groups = user.authorized_groups.arel.as('authorized')
groups_table.project(1) groups_table.project(1)
.from(authorized_groups) .from(authorized_groups)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment