Stop filling the blocks scope array with nil.

This commit is contained in:
José Valim
2010-06-22 23:52:12 +02:00
parent aacb83143f
commit e5444f84df

View File

@@ -418,7 +418,9 @@ module ActionDispatch
end
def merge_blocks_scope(parent, child)
(parent || []) + [child]
merged = parent ? parent.dup : []
merged << child if child
merged
end
def merge_options_scope(parent, child)