Use Object#tap instead of #returning (#6887).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-11-14 16:24:21 +00:00
parent c4a218358f
commit 2ee45e8cac
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class Project < ActiveRecord::Base
end
def self.all_modules
returning [] do |modules|
[].tap do |modules|
Redmine::AccessControl.available_project_modules.each do |name|
modules << EnabledModule.new(:name => name.to_s)
end