From 92253829dee9a1fb545f71f71894dee1df604f74 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 14 Nov 2009 01:12:49 -0800 Subject: Ruby 1.9.2: fix flatten_deeper to preserve nils --- activerecord/lib/active_record/associations/association_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index 9b96ec0cf4..3cd1a1d922 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -268,7 +268,7 @@ module ActiveRecord if elem.respond_to?(:each) flatten_deeper(elem) else - Array.wrap(elem) + [elem] end end end -- cgit v1.2.3