Commit 475fedc0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make User#accessible_deploy_keys works in rails4

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a885c687
...@@ -373,7 +373,7 @@ class User < ActiveRecord::Base ...@@ -373,7 +373,7 @@ class User < ActiveRecord::Base
end end
def accessible_deploy_keys def accessible_deploy_keys
DeployKey.in_projects(self.authorized_projects).uniq DeployKey.in_projects(self.authorized_projects.pluck(:id)).uniq
end end
def created_by def created_by
......
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