diff options
Diffstat (limited to 'activerecord/lib/active_record/associations/has_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/has_association.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/associations/has_association.rb b/activerecord/lib/active_record/associations/has_association.rb index 4407e2ea9a..0ecdb696ea 100644 --- a/activerecord/lib/active_record/associations/has_association.rb +++ b/activerecord/lib/active_record/associations/has_association.rb @@ -37,18 +37,6 @@ module ActiveRecord conditions << Arel.sql(sql_conditions) if sql_conditions aliased_table.create_and(conditions) end - - if RUBY_VERSION < '1.9.2' - # Array#flatten has problems with recursive arrays before Ruby 1.9.2. - # Going one level deeper solves the majority of the problems. - def flatten_deeper(array) - array.collect { |element| (element.respond_to?(:flatten) && !element.is_a?(Hash)) ? element.flatten : element }.flatten - end - else - def flatten_deeper(array) - array.flatten - end - end end end end |