aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/dynamic_finder_match.rb
Commit message (Collapse)AuthorAgeFilesLines
* Dynamic finders should use the ActiveRecord::Base::find method instead of ↵Eloy Duran2008-10-031-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]miloops2008-09-091-1/+2
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* add dynamic finder bang version to raise RecordNotFoundJosh Susser2008-08-251-0/+7
| | | | | | [#905 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* refactor dynamic finder name matching into its own classJosh Susser2008-08-251-0/+33
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>