From 8da936a5d370aa2616ef532e1b65a32c514f518d Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Tue, 6 Jan 2015 14:54:41 +0530 Subject: Fix lookup of fixtures with non-string label - Fixtures with non-string labels such as integers should be accessed using integer label as key. For eg. pirates(1) or pirates(42). - But this results in NotFound error because the label is converted into string before looking up into the fixtures hash. - After this commit, the label is converted into string only if its a symbol. - This issue was fount out while adding a test case for https://github.com/rails/rails/commit/7b910917. --- activerecord/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 97e65a5bb9..9da2a540dd 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,8 @@ +* Fix accessing of fixtures having non-string labels like Fixnum by converting + the label into string only if its a symbol. + + *Prathamesh Sonpatki* + * Remove deprecated support to preload instance-dependent associations. *Yves Senn* -- cgit v1.2.3