diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-13 11:47:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-03-13 11:47:12 -0700 |
commit | d35f0033c7dec2b8d8b52058fb8db495d49596f7 (patch) | |
tree | 4aa39f75ec80d4e0d16bc1bc80aff0c0df71673b /activerecord/test/cases/relations_test.rb | |
parent | d92ae6ccca3bcfd73546d612efaea011270bd270 (diff) | |
download | rails-d35f0033c7dec2b8d8b52058fb8db495d49596f7.tar.gz rails-d35f0033c7dec2b8d8b52058fb8db495d49596f7.tar.bz2 rails-d35f0033c7dec2b8d8b52058fb8db495d49596f7.zip |
passing an instance of an AR object to `find` is deprecated
please pass the id of the AR object by calling `.id` on the model first.
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index ab71b2af9d..3b4b4c92f0 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -637,7 +637,7 @@ class RelationTest < ActiveRecord::TestCase def test_find_with_list_of_ar author = Author.first - authors = Author.find([author]) + authors = Author.find([author.id]) assert_equal author, authors.first end |