aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename active_relation_engine -> arel_engine and active_relation_table -> ↵Pratik Naik2010-01-161-10/+10
| | | | arel_table
* Remove protected method Class#scoped?Pratik Naik2010-01-161-9/+5
|
* Make type_condition return Arel predicate and not a string conditionPratik Naik2010-01-161-5/+3
|
* Remove unused default_selectPratik Naik2010-01-161-8/+0
|
* Remove scope related code from construct_joinPratik Naik2010-01-161-20/+6
|
* Remove stale construct_* methodsPratik Naik2010-01-161-24/+0
|
* Remove construct_conditionsPratik Naik2010-01-161-11/+2
|
* Simplify Model.delete_allPratik Naik2010-01-161-1/+1
|
* Model.delete should just use scoped.deletePratik Naik2010-01-161-1/+1
|
* Remove AR#scope() methodPratik Naik2010-01-161-25/+8
|
* Make scopes use relations under the hoodPratik Naik2010-01-161-72/+72
|
* Deprecate ActiveRecord::Base.colorize_logging.José Valim2010-01-131-8/+7
|
* Delay building arel relation as long as possible for improved introspectionPratik Naik2010-01-121-2/+2
|
* MergeDavid Heinemeier Hansson2010-01-031-21/+13
|\
| * Ensure using proper engine for Arel::TablePratik Naik2010-01-041-2/+8
| |
| * Make Relation#includes behave exactly like the existing :include optionPratik Naik2010-01-031-11/+2
| |
| * Add Relation#includes to be an equivalent of current finder option :includePratik Naik2010-01-031-1/+1
| |
| * Get rid of Model.construct_finder_arel_with_includes. Use ↵Pratik Naik2010-01-031-13/+8
| | | | | | | | construct_finder_arel instead
* | Changed ActiveRecord::Base.store_full_sti_class to be true by default ↵David Heinemeier Hansson2010-01-031-1/+1
|/ | | | reflecting the previously announced Rails 3 default [DHH]
* Rename Model.arel_table to Model.active_relationPratik Naik2010-01-021-13/+13
|
* Rename Model.engine to active_relation_engine. Cache arel_table and the ↵Pratik Naik2010-01-021-8/+13
| | | | method takes no arguments now
* Use arel for building the STI type conditionPratik Naik2010-01-011-7/+7
|
* Use PredicateBuilder for sql hash sanitizationPratik Naik2010-01-011-23/+9
|
* Add Relation#delete [Pratik Naik, Emilio Tagua]Pratik Naik2010-01-011-3/+3
|
* Kick AR logging back to life and move ControllerRuntime inside ↵José Valim2009-12-301-1/+0
| | | | ActiveRecord::Rails.
* Replace Base#safe_to_array with Array.wrapPratik Naik2009-12-291-14/+2
|
* Use relation#delete_all for Model.delete_allPratik Naik2009-12-291-5/+1
|
* Migrate all the calculation methods to RelationPratik Naik2009-12-291-0/+4
|
* Add Model.having and Relation#havingPratik Naik2009-12-291-14/+3
|
* Remove the todo note for arel#lockPratik Naik2009-12-281-1/+0
|
* Add Model.readonly and association_collection#readonly finder methodPratik Naik2009-12-281-1/+1
|
* Remove locking related unused codePratik Naik2009-12-281-8/+0
|
* Remove unused construct_finder_sqlPratik Naik2009-12-281-4/+0
|
* Add Model.lock and relation#lock now that arel has lockingPratik Naik2009-12-281-1/+4
|
* Add Model.from and association_collection#from finder methodsPratik Naik2009-12-281-1/+1
|
* Use relation.from when constructing a relationPratik Naik2009-12-281-1/+1
|
* Add relation.destroy_allPratik Naik2009-12-271-1/+1
|
* Make Model.destroy_all use new findersPratik Naik2009-12-271-1/+1
|
* Make Model.find(:last) use relationsPratik Naik2009-12-271-42/+5
|
* Make Model.all just a wrapper for find(:all)Pratik Naik2009-12-271-9/+3
|
* Make Model.find(:first, ..) use relationsPratik Naik2009-12-271-24/+2
|
* Make Model.exists? use relation.exists?Pratik Naik2009-12-271-12/+7
|
* Make Model.find(:all) use relationsPratik Naik2009-12-271-1/+1
|
* Add relation.from as a temporary workaround until arel relation has .from optionPratik Naik2009-12-271-1/+2
|
* Make Model.find(ids) use relationsPratik Naik2009-12-271-63/+11
|
* Make Model.all return an array rather than a relation for consistency. Use ↵Pratik Naik2009-12-271-2/+2
| | | | Model.scoped to get a relation
* Fix dynamic finder docsPratik Naik2009-12-271-3/+2
|
* Make Model.find_or_create_by_* and find_or_initialize_by_* use relations and ↵Pratik Naik2009-12-271-54/+1
| | | | remove method caching
* Make Model.find_by_* and Model.find_all_by_* use relations and remove ↵Pratik Naik2009-12-271-54/+22
| | | | dynamic method caching
* Ensure all the finder methods respect scopingPratik Naik2009-12-261-1/+1
|