diff options
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |