Skip to content
Snippets Groups Projects
Commit 475fedc0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Make User#accessible_deploy_keys works in rails4

parent a885c687
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment