aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* Delegate all finders to RelationPratik Naik2010-01-204-159/+154
|
* Ignore order for simple calculations to make postgresql happyPratik Naik2010-01-201-1/+2
|
* Named scopes dont need count() now that Relation#count handles all the casesPratik Naik2010-01-201-5/+0
|
* with_scope no longer needs :reverse_mergePratik Naik2010-01-201-13/+2
|
* Remove find_with_associations and related code from associations now that ↵Pratik Naik2010-01-201-67/+0
| | | | Relation handles that stuff
* Remove Relation#where_clausePratik Naik2010-01-192-7/+3
|
* Give preference to to_a over arel from Relation#method_missingPratik Naik2010-01-192-5/+6
|
* Rename CalculationMethods to Calculations and get rid of the old ↵Pratik Naik2010-01-194-12/+4
| | | | Calculations module
* Move the only remaining calculation method calculate() to RelationPratik Naik2010-01-192-83/+62
|
* Get rid of construct_count_options_from_argsPratik Naik2010-01-192-33/+4
|
* Delegate count to RelationPratik Naik2010-01-193-67/+68
|
* Fix the named scope equality checkPratik Naik2010-01-191-1/+1
|
* Delegate :average, :minimum, :maximum, :sum to RelationPratik Naik2010-01-192-43/+37
|
* Add Relation#construct_relation_for_association_calculations for ↵Pratik Naik2010-01-193-25/+17
| | | | calculations with includes
* Add Relation#find_with_associations to load relation with eager loaded ↵Pratik Naik2010-01-192-25/+40
| | | | associations
* Simplify calculation scope building. Remove :order from associations as it ↵Pratik Naik2010-01-181-14/+1
| | | | is troublesome w/ calculation methods using postgresql.
* Remove construct_calculation_arel_with_included_associations because it's ↵Pratik Naik2010-01-181-27/+1
| | | | same as construct_finder_arel_with_included_associations
* No need to pass current_scoped_methods to construct_calculation_arel everytimePratik Naik2010-01-181-18/+18
|
* Rake tasks should load generators from new paths.José Valim2010-01-181-1/+1
|
* Cleanup deprecation notices.Joshua Peek2010-01-181-4/+4
|
* Forgot to change named_scope to scope in an ArgumentError raise exception ↵Paco Guzman2010-01-181-1/+1
| | | | | | for duplication scopes related to commit d60bb0a9e4be [#3736 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Simplify construct_finder_arel_* methodsPratik Naik2010-01-181-27/+7
|
* Handle invalid query IN() generated when a blank array is supplied in hash ↵Pratik Naik2010-01-181-1/+2
| | | | conditions
* Get rid of Relation#order_clausesPratik Naik2010-01-181-10/+6
|
* Fix the named_scope deprecation noticePratik Naik2010-01-181-1/+1
|
* Ensure deprecated validate methods are invoked when they are private [#3214 ↵José Valim2010-01-181-1/+1
| | | | status:resolved]
* Rename named_scope to scopePratik Naik2010-01-181-7/+12
|
* Dont check for class equaity when merging relationsPratik Naik2010-01-181-4/+0
|
* Inherit named scope class Scope from RelationPratik Naik2010-01-185-83/+49
|
* Ensure that Scope#proxy_scope is always klass. Rename proxy_scope to klass too.Pratik Naik2010-01-182-22/+18
|
* Make relations work as scopesPratik Naik2010-01-172-8/+28
|
* Make sure named_scope names are not used as method names alreadyPratik Naik2010-01-171-0/+5
|
* save(false) is gone, use save(:validate => false) instead.José Valim2010-01-177-16/+26
|
* Add ActionDispatch::Railties::Subscriber and finish tidying up the logging.José Valim2010-01-171-1/+1
|
* Make merging of order values consistentPratik Naik2010-01-171-1/+1
|
* Make Relation#reload force load the records immediatelyPratik Naik2010-01-171-2/+3
|
* Use relations to build scope for named scopesPratik Naik2010-01-171-2/+7
|
* Simplify Model.scoped definitionPratik Naik2010-01-171-7/+1
|
* Merge docrailsPratik Naik2010-01-175-15/+13
|
* Cache Model.arel_tablePratik Naik2010-01-171-3/+3
|
* Use arel_table[] instead of unscoped[] to get arel attributePratik Naik2010-01-171-3/+3
|
* Revert "Fix #microseconds conversion and #fast_string_to_time"Pratik Naik2010-01-171-7/+6
| | | | This reverts commit 717a2941e15b32d07cc456bb0d81742ecfc5b4a3. Bunch of failures when running postgresql tests.
* Rename Model.active_relation to Model.unscopedPratik Naik2010-01-177-21/+21
|
* Improve the error message for class mismatch on Relation#mergePratik Naik2010-01-171-1/+3
|
* Get rid of Base#merge_includesPratik Naik2010-01-162-6/+2
|
* 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-164-9/+6
|
* Use new finder methods for association preloadingPratik Naik2010-01-161-17/+16
|
* Use Relation#apply_finder_options from calculationsPratik Naik2010-01-161-16/+3
|
* Add Relation#apply_finder_options for applying old finder optionsPratik Naik2010-01-162-29/+24
|