aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/dynamic_finder_match.rb
Commit message (Collapse)AuthorAgeFilesLines
* be kind to the garbage collector: only instantiate objects when absolutely ↵Aaron Patterson2010-09-271-14/+17
| | | | necessary
* DRY up our regular expressionAaron Patterson2010-09-271-3/+3
|
* reduce method calls in the dynamic finder matcherAaron Patterson2010-09-271-4/+4
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Adding to AR::Base documentation about dynamically scopeded_by queryNeeraj Singh2010-08-021-2/+2
| | | | User.scoped_by_user_name('David')
* Remove unintentional API changes. [#1108]Pratik Naik2010-07-141-0/+4
|
* Added typewriter tag to code.Rizwan Reza2010-06-151-2/+3
|
* Adds title and basic description where needed.Rizwan Reza2010-06-151-0/+4
|
* cleaning up many more warnings in activerecord [#4180 state:resolved]Aaron Patterson2010-03-151-0/+3
| | | | Signed-off-by: wycats <wycats@gmail.com>
* 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>