summaryrefslogtreecommitdiff
path: root/app/roles/account.rb
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2012-10-09 04:10:04 +0400
committerAndrey Kumanyaev <me@zzet.org>2012-10-09 04:10:04 +0400
commitdf7c52489a890ac38491682b4a3399beb7cdbc86 (patch)
tree9a81bee70285ac1e5a0c158eab5f4c981e49b86d /app/roles/account.rb
parenta635b9da97b0e104b8ac1a846344ec8a4abd3123 (diff)
downloadgitlab-ce-df7c52489a890ac38491682b4a3399beb7cdbc86.tar.gz
simple refactoring
Diffstat (limited to 'app/roles/account.rb')
-rw-r--r--app/roles/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/roles/account.rb b/app/roles/account.rb
index b8c445a3d58..19465478915 100644
--- a/app/roles/account.rb
+++ b/app/roles/account.rb
@@ -41,7 +41,7 @@ module Account
# Remove user from all projects and
# set blocked attribute to true
def block
- users_projects.all.each do |membership|
+ users_projects.find_each do |membership|
return false unless membership.destroy
end