This project is archived and is in readonly mode.

Changeset [8d99ec9a4dcef5918c4487a0d94ef0a9622fe8c9] 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...

Committed by Emilio Tagua

  • M activerecord/lib/active_record/named_scope.rb
  • M activerecord/test/cases/named_scope_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>