This project is archived and is in readonly mode.
Fix that ActiveRecord would load a whole association when calling first
-
Pratik
- Assigned user set to Pratik
- Title changed from [PATCH] Fix that ActiveRecord would load a whole association when calling first to Fix that ActiveRecord would load a whole association when calling first
-
Jan De Poorter
- Assigned user cleared.
- Title changed from Fix that ActiveRecord would load a whole association when calling first to [PATCH] Fix that ActiveRecord would load a whole association when calling first
-
Jan De Poorter
- Assigned user set to Pratik
- Title changed from [PATCH] Fix that ActiveRecord would load a whole association when calling first to Fix that ActiveRecord would load a whole association when calling first
-
Pratik
Looks good.
Getting one failing test though :
HasAndBelongsToManyAssociationsTest) [./test/cases/associations/has_and_belongs_to_many_associations_test.rb:256:in `test_create' ./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__' ./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run']: <false> is not true. -
Jan De Poorter
Oops.. Fixed the tests so it reflects what I changed.
-
Repository
- State changed from new to resolved
(from [050e58441bf7e60d167f6708072f8fa7aee2ce76]) Association#first and last should not load the association if not needed. [#1091 Fix that ActiveRecord would load a whole association when calling first state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
