mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user