aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/callbacks_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-03-09 10:04:57 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-03-09 10:04:57 +0000
commitec23277124b2f602bed1772926e687556de15176 (patch)
treef30c895b87e4c43ddb970011d25a22d3fb708667 /activerecord/test/cases/associations/callbacks_test.rb
parent45efd0ebf77811e43cebc68400c24652133a0f99 (diff)
parentcff340f1eda96be952437abeed80591a85ef0194 (diff)
downloadrails-ec23277124b2f602bed1772926e687556de15176.tar.gz
rails-ec23277124b2f602bed1772926e687556de15176.tar.bz2
rails-ec23277124b2f602bed1772926e687556de15176.zip
Merge pull request #14262 from sferik/flat_map
Replace additional instances of map.flatten with flat_map
Diffstat (limited to 'activerecord/test/cases/associations/callbacks_test.rb')
-rw-r--r--activerecord/test/cases/associations/callbacks_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/callbacks_test.rb b/activerecord/test/cases/associations/callbacks_test.rb
index e555c52281..cf71bc1597 100644
--- a/activerecord/test/cases/associations/callbacks_test.rb
+++ b/activerecord/test/cases/associations/callbacks_test.rb
@@ -159,7 +159,7 @@ class AssociationCallbacksTest < ActiveRecord::TestCase
activerecord.reload
assert activerecord.developers_with_callbacks.size == 2
end
- log_array = activerecord.developers_with_callbacks.collect {|d| ["before_removing#{d.id}","after_removing#{d.id}"]}.flatten.sort
+ log_array = activerecord.developers_with_callbacks.flat_map {|d| ["before_removing#{d.id}","after_removing#{d.id}"]}.sort
assert activerecord.developers_with_callbacks.clear
assert_equal log_array, activerecord.developers_log.sort
end