mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Stop filling the blocks scope array with nil.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user