aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
| * dup is working betterAaron Patterson2010-11-231-4/+8
| |
| * Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-11-231-1/+2
| |\
| | * Merge branch 'master' of github.com:lifo/docrailsNeeraj Singh2010-11-221-19/+24
| | |\
| | * | Revert "unscoped takes care of named_scopes too"Neeraj Singh2010-11-221-1/+2
| | | | | | | | | | | | | | | | This reverts commit 126fbd7ed8a310bf940414c1b7ddab06b03d400e.
| | * | unscoped takes care of named_scopes tooNeeraj Singh2010-11-171-2/+1
| | | |
| * | | Remove confusing parenthesis.Emilio Tagua2010-11-241-1/+1
| | | |
| * | | No need to define a local var here.Emilio Tagua2010-11-241-2/+1
| | |/ | |/|
| * | unscoped takes care of named_scopes tooNeeraj Singh2010-11-211-2/+1
| | |
| * | removed an AR method which wasn't used internally, had no tests, and had no docsJosh Kalderimis2010-11-201-4/+0
| | | | | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * | class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-8/+12
| | | | | | | | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* | | "there is no need to store this option just for initialization" José Valim ↵Emilio Tagua2010-11-191-4/+0
| | | | | | | | | | | | dixit.
* | | identity_map name is used for configuration, use IdentityMap to access it.Emilio Tagua2010-11-191-3/+6
| | |
* | | Use hash[:Post][1] style identity maps for each table.Emilio Tagua2010-11-191-1/+8
| | |
* | | Added config syntax to enable/disable identity map: ↵Emilio Tagua2010-11-191-0/+1
| | | | | | | | | | | | config.active_record.identity_map = true
* | | Separated initializationMarcin Raczkowski2010-11-191-24/+9
| | |
* | | IdentityMap - Fixes problem with dirty attributesMarcin Raczkowski2010-11-191-1/+2
| | |
* | | IdentityMap - adding and removing of records on create/updateMarcin Raczkowski2010-11-191-3/+31
| | |
* | | IdentityMap - misc fixesMarcin Raczkowski2010-11-191-0/+1
|/ / | | | | | | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection
* | replace and with && as per rails coding conventionNeeraj Singh2010-11-181-1/+1
| |
* | remove the rescue block by returning a not asking Base for lookup_ancestors. ↵Neeraj Singh2010-11-171-5/+2
| | | | | | | | It was also marked for later optimization.
* | revises RDoc of AR::Base#==Xavier Noria2010-11-161-1/+9
| |
* | Models should be equals even after destroyedSantiago Pastorino2010-11-161-3/+3
|/ | | | [#5978 state:committed]
* Don't check if persisted is defined just initialize it properlySantiago Pastorino2010-11-091-1/+1
|
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-8/+10
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* renaming bind_values to binds where it makes senseAaron Patterson2010-10-261-2/+2
|
* one more mysql test left!Aaron Patterson2010-10-261-1/+1
|
* find_one uses prepared statement cacheAaron Patterson2010-10-261-0/+1
|
* exec returns an AR::ResultAaron Patterson2010-10-261-2/+2
|
* use a map and flatten to avoid << calls on arrayAaron Patterson2010-10-201-7/+5
|
* only call `column_methods_hash` once, use array math for faster test of ↵Aaron Patterson2010-10-201-5/+4
| | | | existence
* roll up weird method to meta programmed methodAaron Patterson2010-10-201-11/+5
|
* use zip + Hash.[] rather than looping with an indexAaron Patterson2010-10-201-3/+1
|
* extract options is not necessaryAaron Patterson2010-10-201-1/+0
|
* removing unused variableAaron Patterson2010-10-201-1/+1
|
* default scope merge where clauses [#5488 state:resolved]Jan2010-10-201-0/+1
|
* default scope can accept any object that responds to #callAaron Patterson2010-10-191-1/+1
|
* Allow default_scope to accept a Proc.Tim Morgan2010-10-191-1/+6
|
* reorder removed in favor of except(:order).orderSantiago Pastorino2010-10-111-1/+1
|
* be kind to the garbage collector and reuse our visitor objectAaron Patterson2010-10-031-1/+4
|
* avoid creating objects when we canAaron Patterson2010-10-031-2/+1
|
* Arel::Sql::Engine.new does not do anything anymoreAaron Patterson2010-09-301-1/+1
|
* type_name should check for blank because people may have messed up databasesAaron Patterson2010-09-301-1/+1
|
* type_name is never a blank string, so use faster .nil? callAaron Patterson2010-09-301-1/+1
|
* speeding up object instantiation by eliminating instance_evalAaron Patterson2010-09-301-7/+21
|
* Set attributes properly for model built from association with conditions ↵Marcelo Giorgi2010-09-281-8/+9
| | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* do not need intermediate variable, avoid lasgnAaron Patterson2010-09-271-2/+3
|
* Delegate ActiveRecord::Base.offset to scoped methods (analogous to limit) ↵Marcelo Giorgi2010-09-241-1/+1
| | | | | | [#5688 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* use instance_eval, reduce method calls.Stevie Graham2010-09-211-15/+7
| | | | | | | | | | | | | | | | execution time in seconds for `rake test_sqlite3`: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] - before: 52.771426, 52.159505, 52.937056 - after: 51.452584, 51.897017, 51.584431 rubinius 1.0.1 (1.8.7 release 2010-06-03 JI) [x86_64-apple-darwin10.4.0] - before: 284.334076 - after: 285.753028 ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] - before: 75.811548, 75.533153, 75.353122 - after: 75.244243, 75.19226, 75.256925
* Cache unserialized attributesJeremy Kemper2010-09-091-6/+5
|
* refactor a couple injects to map + Hash[]Aaron Patterson2010-09-081-5/+2
|