Commit 475fedc0a7c6bb9af9b15bea208ada33c94524f0

Authored by Dmitriy Zaporozhets
1 parent a885c687

Make User#accessible_deploy_keys works in rails4

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/user.rb
@@ -373,7 +373,7 @@ class User &lt; ActiveRecord::Base @@ -373,7 +373,7 @@ class User &lt; ActiveRecord::Base
373 end 373 end
374 374
375 def accessible_deploy_keys 375 def accessible_deploy_keys
376 - DeployKey.in_projects(self.authorized_projects).uniq 376 + DeployKey.in_projects(self.authorized_projects.pluck(:id)).uniq
377 end 377 end
378 378
379 def created_by 379 def created_by