This project is archived and is in readonly mode.
Changeset [8d99ec9a4dcef5918c4487a0d94ef0a9622fe8c9] by Emilio Tagua
Revision 8d99ec9a4dcef5918c4487a0d94ef0a9622fe8c9,
committed by Emilio Tagua
· March 30th, 2010 @ 02:36 PM
Named scopes shouldn't test equality using to_a if it's not an Array, this was causing records to be loaded before they were needed.
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/8d99ec9a4dcef5918c4487a0d94ef0...
2 changed files
-
M
activerecord/lib/active_record/named_scope.rb -
M
activerecord/test/cases/named_scope_test.rb