Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Dynamic finders should use the ActiveRecord::Base::find method instead of ↵ | Eloy Duran | 2008-10-03 | 1 | -4/+4 |
| | | | | | | | | | | | | ::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] | ||||
* | Added find_last_by dynamic finder [status:committed #762] | miloops | 2008-09-09 | 1 | -1/+2 |
| | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | add dynamic finder bang version to raise RecordNotFound | Josh Susser | 2008-08-25 | 1 | -0/+7 |
| | | | | | | [#905 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | refactor dynamic finder name matching into its own class | Josh Susser | 2008-08-25 | 1 | -0/+33 |
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |