mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 08:31:31 +00:00
use "if block_given?" instead of "if block" in lib/redmine/views/builders/structure.rb (#32308)
git-svn-id: http://svn.redmine.org/redmine/trunk@18815 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
71b8608421
commit
3efe67f14d
@ -69,8 +69,7 @@ module Redmine
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if block
|
||||
if block_given?
|
||||
@struct << (args.first.is_a?(Hash) ? args.first : {})
|
||||
yield(self)
|
||||
ret = @struct.pop
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user