use "do end" instead of {} at lib/redmine/my_page.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20282 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-11-07 12:30:23 +00:00
parent 4e1716b35f
commit a892a7585f

View File

@@ -48,11 +48,11 @@ module Redmine
def self.block_options(blocks_in_use=[])
options = []
blocks.each do |block, block_options|
indexes = blocks_in_use.map {|n|
indexes = blocks_in_use.map do |n|
if n =~ /\A#{block}(__(\d+))?\z/
$2.to_i
end
}.compact
end.compact
occurs = indexes.size
block_id = indexes.any? ? "#{block}__#{indexes.max + 1}" : block