diff options
| author | Andrey Kumanyaev <me@zzet.org> | 2012-10-09 04:10:04 +0400 |
|---|---|---|
| committer | Andrey Kumanyaev <me@zzet.org> | 2012-10-09 04:10:04 +0400 |
| commit | df7c52489a890ac38491682b4a3399beb7cdbc86 (patch) | |
| tree | 9a81bee70285ac1e5a0c158eab5f4c981e49b86d /app/roles/account.rb | |
| parent | a635b9da97b0e104b8ac1a846344ec8a4abd3123 (diff) | |
| download | gitlab-ce-df7c52489a890ac38491682b4a3399beb7cdbc86.tar.gz | |
simple refactoring
Diffstat (limited to 'app/roles/account.rb')
| -rw-r--r-- | app/roles/account.rb | 2 |
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 |
