mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ruby 1.9.2: fix flatten_deeper to preserve nils
This commit is contained in:
@@ -268,7 +268,7 @@ module ActiveRecord
|
||||
if elem.respond_to?(:each)
|
||||
flatten_deeper(elem)
|
||||
else
|
||||
Array.wrap(elem)
|
||||
[elem]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user