aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/dynamic_scope_match.rb
Commit message (Collapse)AuthorAgeFilesLines
* clean up implementation of dynamic methods. use method compilation etc.Jon Leighton2012-05-041-30/+0
|
* Refactor and cleanup in some ActiveRecord modulesCarlos Antonio da Silva2012-03-031-2/+5
| | | | | | | | | | | * Avoid double hash lookups in AR::Reflection when reflecting associations/aggregations * Minor cleanups: use elsif, do..end, if..else instead of unless..else * Simplify DynamicMatchers#respond_to? * Use "where" instead of scoped with conditions hash * Extract `scoped_by` method pattern regexp to constant * Extract noisy class_eval from method_missing in dynamic matchers * Extract readonly check, avoid calling column#to_s twice in persistence * Refactor predicate builder, remove some variables
* Move argument validation into matchPaul McMahon2012-01-281-0/+4
|
* constructor should not do so much work; avoid allocating object if possibleAaron Patterson2010-09-271-10/+5
|
* no need for a case / when statementAaron Patterson2010-09-271-11/+7
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Added description and title to Dynamic Scope MatchRizwan Reza2010-06-151-0/+7
|
* Introduce dynamic scopes for ActiveRecord: you can now use class methods ↵Yaroslav Markin2008-12-281-0/+25
like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply. [#1648 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>