Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [8d337e9ec2e25007d557150dbe7557ab3c3bd05f] by Eloy Duran

Revision 8d337e9ec2e25007d557150dbe7557ab3c3bd05f, committed by Eloy Duran · October 3rd, 2008 @ 08:28 PM

Dynamic finders should use the ActiveRecord::Base::find method instead of ::find_initial, :find_last, and ::find_all.

This is so when people override ActiveRecord::Base::find, the new ::find method will also be invoked by the dynamic finders. Associations for instance do go through ::find, so this makes it more consistent. Also removed the unnecessary deprecation silence blocks.

Signed-off-by: Michael Koziarski michael@koziarski.com

[#1162 state:committed] http://github.com/rails/rails/co...

3 changed files

  • M activerecord/lib/active_record/base.rb
  • M activerecord/lib/active_record/dynamic_finder_match.rb
  • M activerecord/test/cases/finder_test.rb