This project is archived and is in readonly mode.
Dynamic finders should go through AR::Base::find
-
Pascal Ehlert
+1 for that.. Highly appreciated from my side as I had the same problem when writing a plugin and never understood why we were using those methods anyway.
-
Eloy Duran
I attached a newer version which also removes the unnecessary deprecation silence blocks.
-
Repository
- State changed from new to committed
(from [8d337e9ec2e25007d557150dbe7557ab3c3bd05f]) 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 Dynamic finders should go through AR::Base::find state:committed] http://github.com/rails/rails/co...
