diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-01 19:08:28 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-01 19:08:28 -0200 |
commit | f141919974806568f480cf2c670f990322308044 (patch) | |
tree | 31bf6aa90ba5dcd96a63472b0f9ba9e402690d66 /activerecord | |
parent | a28f1c279355ac129bb1976d97a7012dd219cb77 (diff) | |
download | rails-f141919974806568f480cf2c670f990322308044.tar.gz rails-f141919974806568f480cf2c670f990322308044.tar.bz2 rails-f141919974806568f480cf2c670f990322308044.zip |
Add CHANGELOG entry for #13557 [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activerecord/test/cases/validations/presence_validation_test.rb | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index b5d3420dd7..e60925827b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Fix presence validator for association when the associated record responds to `to_a`. + + *gmarik* + * Fixed regression on preload/includes with multiple arguments failing in certain conditions, raising a NoMethodError internally by calling `reflect_on_association` for `NilClass:Class`. diff --git a/activerecord/test/cases/validations/presence_validation_test.rb b/activerecord/test/cases/validations/presence_validation_test.rb index fa04a7d02e..3790d3c8cf 100644 --- a/activerecord/test/cases/validations/presence_validation_test.rb +++ b/activerecord/test/cases/validations/presence_validation_test.rb @@ -51,7 +51,6 @@ class PresenceValidationTest < ActiveRecord::TestCase assert b.invalid? end - def test_validates_presence_doesnt_convert_to_array Speedometer.validates_presence_of :dashboard |