aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
Commit message (Collapse)AuthorAgeFilesLines
* using bind parameters for updatesAaron Patterson2011-04-301-1/+1
|
* postgresql supports prepare statement deletesAaron Patterson2011-04-291-1/+3
|
* Use existing #empty_insert_statement_value for an insert with no columns.Ken Collins2011-04-241-1/+1
|
* The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in ↵Ken Collins2011-04-231-1/+1
| | | | #insert to match replacement in #exec_query.
* sort insert columns for better cache hitsAaron Patterson2011-04-141-1/+1
|
* refactoring inserts to use the same method on the connectionAaron Patterson2011-04-141-21/+16
|
* insert statements are prepared, but values are not escaped properlyAaron Patterson2011-04-141-6/+24
|
* ActiveRecord::Base.scopes hash is not neededJon Leighton2011-04-121-2/+0
|
* Evaluate default scopes at the last possible moment in order to avoid ↵Jon Leighton2011-04-121-3/+14
| | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped.
* Deprecated support for passing hashes and relations to default_scope, in ↵Jon Leighton2011-04-121-6/+1
| | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details.
* Use IM when trying to load records using ID.Emilio Tagua2011-04-041-0/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Quote find_in_batches ORDER BY clause [#6620 state:resolved]Andrew White2011-03-291-1/+1
|
* pushing id insertion and prefetch primary keys down to Relation#insertAaron Patterson2011-03-221-3/+14
|
* Fixed a bug when empty? was called on a grouped Relation that wasn't loadedChris Oliver2011-03-121-1/+4
| | | | | | [#5829 state:resolved] Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* Referencing a table via the ON condition in a join should force that table ↵Jon Leighton2011-03-071-1/+12
| | | | to be eager-loaded via a JOIN rather than via subsequent queries.
* Rewrote AssociationPreload.Jon Leighton2011-02-281-1/+3
|
* only take the limit if there is a limit to takeAaron Patterson2011-02-251-1/+1
|
* Relation will delegate to AR::Base which already uses the Dynamic finders, ↵Aaron Patterson2011-02-221-8/+3
| | | | so eliminate duplicate calls
* Adding new examples for update_all methodRodrigo Navarro2011-02-201-0/+6
|
* Adding examplesRodrigo Navarro2011-02-201-0/+2
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-16/+22
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * primary keys should not be cleared on cache clear, fixing oracle testsAaron Patterson2011-02-081-1/+8
| |
| * ActiveRecord::Relation#primary_key should return a string, just like ↵Jon Leighton2011-01-031-13/+6
| | | | | | | | ActiveRecord::Base.primary_key does.
| * use the sql literal factory methodAaron Patterson2010-12-241-1/+1
| |
| * stop the recursive insanityAaron Patterson2010-12-241-5/+10
| |
| * setting the primary key on the update managerAaron Patterson2010-12-241-0/+1
| |
| * fixed retrieval of primary key value in Ralation#insert methodRaimonds Simanovskis2010-12-231-1/+1
| | | | | | | | previously primary key value was always assigned nil which caused Oracle enhanced adapter failing tests
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-201-20/+35
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * stop delegating inserts to ARel, use the INSERT SQL ourselvesAaron Patterson2010-12-161-1/+13
| |
| * avoid deprecate apiAaron Patterson2010-12-021-1/+8
| |
| * removing more calls to deprecated methodsAaron Patterson2010-12-021-1/+2
| |
| * just call join_sql against the manager objectAaron Patterson2010-11-301-1/+1
| |
| * we already know it is already an array, so we do not need to make really ↵Aaron Patterson2010-11-301-1/+1
| | | | | | | | really sure it is an array
| * shorten up scope_for_createAaron Patterson2010-11-301-7/+1
| |
| * Ruby 1.8, how does it work?Aaron Patterson2010-11-301-1/+1
| |
| * removing arel 1.0 compatibilityAaron Patterson2010-11-301-4/+1
| |
| * testing Relation#table_nameAaron Patterson2010-11-301-0/+4
| |
| * cleaning up where_values_hashAaron Patterson2010-11-301-7/+7
| |
* | Don't change tests, fix code: if locking is enabled skip IM.Emilio Tagua2010-11-191-1/+1
| |
* | Query objects if readonly_value is false, skip them only if nil.Emilio Tagua2010-11-191-3/+3
| |
* | implicit_readonly is not set until records are loaded, just check ↵Emilio Tagua2010-11-191-3/+2
| | | | | | | | readonly_value and then set readonly status.
* | Don't use identity map if loading readonly records, this will prevent ↵Emilio Tagua2010-11-191-2/+9
|/ | | | changing readonly status on already loaded records.
* only returning where values for the corresponding relation, also filtering ↵Aaron Patterson2010-10-301-2/+7
| | | | where value hash based on table name [#5234 state:resolved] [#5184 state:resolved]
* exec returns an AR::ResultAaron Patterson2010-10-261-1/+1
|
* adding bind_values to relationsAaron Patterson2010-10-261-1/+1
|
* in regexps, the dot in a character class is not a metacharacterXavier Noria2010-10-151-1/+1
|
* where_values_hash always returns a hashAaron Patterson2010-09-281-1/+1
|
* Set attributes properly for model built from association with conditions ↵Marcelo Giorgi2010-09-281-1/+5
| | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* @klass also uses DynamicFinderMatch, so no need for it on the relationAaron Patterson2010-09-271-9/+0
|
* fixed some issues with JSON encodingJakub Suder2010-09-071-1/+3
| | | | | | | | | | | - as_json in ActiveModel should return a hash and handle :only/:except/:methods options - Array and Hash should call as_json on their elements - json methods should not modify options argument [#5374 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>