aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Refactoring attributes/types" [#3348 state:open]Pratik Naik2010-01-2217-458/+148
| | | | | | | | | | | | | | | | | 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.
* Simplify finder method definitionsPratik Naik2010-01-211-13/+11
|
* Supplying Arel::SqlLiteral is much fasterPratik Naik2010-01-212-7/+17
|
* Use quoted_table_name with arel.from() if no from values explicitly ↵Pratik Naik2010-01-211-2/+4
| | | | supplied. Arel seems to be spending a lot of time figuring out the FROM value otherwise.
* Cache quoted_table_namePratik Naik2010-01-211-4/+5
|
* Relation#spawn is basically clone + resetPratik Naik2010-01-211-12/+2
|
* Always use table.* in the finder query unless specifiedPratik Naik2010-01-211-1/+1
|
* Use @limit_value and @offset_value instead of calling arelPratik Naik2010-01-202-5/+5
|
* Move update and update_all to RelationPratik Naik2010-01-202-70/+65
|
* Fix AP's AR integration tests warningPratik Naik2010-01-201-1/+1
|
* Base.merge_conditions is no longer neededPratik Naik2010-01-202-16/+2
|
* Dont delegate Relation#update to arelPratik Naik2010-01-203-4/+4
|
* Delegate delete_all to RelationPratik Naik2010-01-202-24/+20
|
* Move destroy to RelationPratik Naik2010-01-202-28/+28
|
* Remove Base.delete as it's same as Relation#deletePratik Naik2010-01-202-25/+21
|
* Delegate exists? to RelationPratik Naik2010-01-202-38/+34
|
* Make Relation#destroy_all handle all the casesPratik Naik2010-01-202-34/+34
|
* Use unscoped instead of with_exclusive_scope for preloadingPratik Naik2010-01-201-14/+13
|
* Move array_of_strings? to RelationPratik Naik2010-01-202-6/+6
|
* Remove stale methods constructing joinsPratik Naik2010-01-201-28/+0
|
* Scope#find is no longer needed now that Relation#find handles all the casesPratik Naik2010-01-201-12/+0
|
* 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-195-14/+5
| | | | 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>
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-1810-0/+178
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* 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
|