aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make default_scope work with RelationsPratik Naik2010-01-231-2/+3
|
* Revert "Refactoring attributes/types" [#3348 state:open]Pratik Naik2010-01-221-6/+31
| | | | | | | | | | | | | | | | | This reverts commit f936a1f100e75082081e782e5cceb272885c2df7. Conflicts: activerecord/lib/active_record.rb activerecord/lib/active_record/base.rb Revert "Fixed: #without_typecast should only disable typecasting on the duplicated attributes" [#3387 state:open] This reverts commit 2831996483c6a045f1f38d8030256eb58d9771c3. Reason : It's not generating attribute methods properly, making object.column 5x slower.
* Cache quoted_table_namePratik Naik2010-01-211-4/+5
|
* Move update and update_all to RelationPratik Naik2010-01-201-70/+1
|
* Base.merge_conditions is no longer neededPratik Naik2010-01-201-14/+0
|
* Dont delegate Relation#update to arelPratik Naik2010-01-201-2/+2
|
* Delegate delete_all to RelationPratik Naik2010-01-201-22/+1
|
* Move destroy to RelationPratik Naik2010-01-201-28/+1
|
* Remove Base.delete as it's same as Relation#deletePratik Naik2010-01-201-25/+1
|
* Delegate exists? to RelationPratik Naik2010-01-201-35/+1
|
* Make Relation#destroy_all handle all the casesPratik Naik2010-01-201-31/+1
|
* Move array_of_strings? to RelationPratik Naik2010-01-201-4/+0
|
* Remove stale methods constructing joinsPratik Naik2010-01-201-28/+0
|
* Delegate all finders to RelationPratik Naik2010-01-201-115/+1
|
* with_scope no longer needs :reverse_mergePratik Naik2010-01-201-13/+2
|
* Rename CalculationMethods to Calculations and get rid of the old ↵Pratik Naik2010-01-191-1/+2
| | | | Calculations module
* save(false) is gone, use save(:validate => false) instead.José Valim2010-01-171-5/+5
|
* Merge docrailsPratik Naik2010-01-171-2/+2
|
* Cache Model.arel_tablePratik Naik2010-01-171-3/+3
|
* Use arel_table[] instead of unscoped[] to get arel attributePratik Naik2010-01-171-3/+3
|
* Rename Model.active_relation to Model.unscopedPratik Naik2010-01-171-12/+12
|
* Get rid of Base#merge_includesPratik Naik2010-01-161-5/+0
|
* No need to set @arel_engine to nil twice. Committed by mistake in 3968825fPratik Naik2010-01-161-1/+1
|
* Make sure Model#active_relation always adds STI conditions if neededPratik Naik2010-01-161-3/+2
|
* Add Relation#apply_finder_options for applying old finder optionsPratik Naik2010-01-161-29/+1
|
* 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.