BigW Consortium Gitlab

Commit 475fedc0 by Dmitriy Zaporozhets

Make User#accessible_deploy_keys works in rails4

parent a885c687
......@@ -373,7 +373,7 @@ class User < ActiveRecord::Base
end
def accessible_deploy_keys
DeployKey.in_projects(self.authorized_projects).uniq
DeployKey.in_projects(self.authorized_projects.pluck(:id)).uniq
end
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