Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fixed a bug when empty? was called on a grouped Relation that wasn't loaded | Chris Oliver | 2011-03-12 | 1 | -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 Leighton | 2011-03-07 | 1 | -1/+12 | |
| | | | | to be eager-loaded via a JOIN rather than via subsequent queries. | |||||
* | Rewrote AssociationPreload. | Jon Leighton | 2011-02-28 | 1 | -1/+3 | |
| | ||||||
* | only take the limit if there is a limit to take | Aaron Patterson | 2011-02-25 | 1 | -1/+1 | |
| | ||||||
* | Relation will delegate to AR::Base which already uses the Dynamic finders, ↵ | Aaron Patterson | 2011-02-22 | 1 | -8/+3 | |
| | | | | so eliminate duplicate calls | |||||
* | Adding new examples for update_all method | Rodrigo Navarro | 2011-02-20 | 1 | -0/+6 | |
| | ||||||
* | Adding examples | Rodrigo Navarro | 2011-02-20 | 1 | -0/+2 | |
| | ||||||
* | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2011-02-15 | 1 | -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 tests | Aaron Patterson | 2011-02-08 | 1 | -1/+8 | |
| | | ||||||
| * | ActiveRecord::Relation#primary_key should return a string, just like ↵ | Jon Leighton | 2011-01-03 | 1 | -13/+6 | |
| | | | | | | | | ActiveRecord::Base.primary_key does. | |||||
| * | use the sql literal factory method | Aaron Patterson | 2010-12-24 | 1 | -1/+1 | |
| | | ||||||
| * | stop the recursive insanity | Aaron Patterson | 2010-12-24 | 1 | -5/+10 | |
| | | ||||||
| * | setting the primary key on the update manager | Aaron Patterson | 2010-12-24 | 1 | -0/+1 | |
| | | ||||||
| * | fixed retrieval of primary key value in Ralation#insert method | Raimonds Simanovskis | 2010-12-23 | 1 | -1/+1 | |
| | | | | | | | | previously primary key value was always assigned nil which caused Oracle enhanced adapter failing tests | |||||
* | | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2010-12-20 | 1 | -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 ourselves | Aaron Patterson | 2010-12-16 | 1 | -1/+13 | |
| | | ||||||
| * | avoid deprecate api | Aaron Patterson | 2010-12-02 | 1 | -1/+8 | |
| | | ||||||
| * | removing more calls to deprecated methods | Aaron Patterson | 2010-12-02 | 1 | -1/+2 | |
| | | ||||||
| * | just call join_sql against the manager object | Aaron Patterson | 2010-11-30 | 1 | -1/+1 | |
| | | ||||||
| * | we already know it is already an array, so we do not need to make really ↵ | Aaron Patterson | 2010-11-30 | 1 | -1/+1 | |
| | | | | | | | | really sure it is an array | |||||
| * | shorten up scope_for_create | Aaron Patterson | 2010-11-30 | 1 | -7/+1 | |
| | | ||||||
| * | Ruby 1.8, how does it work? | Aaron Patterson | 2010-11-30 | 1 | -1/+1 | |
| | | ||||||
| * | removing arel 1.0 compatibility | Aaron Patterson | 2010-11-30 | 1 | -4/+1 | |
| | | ||||||
| * | testing Relation#table_name | Aaron Patterson | 2010-11-30 | 1 | -0/+4 | |
| | | ||||||
| * | cleaning up where_values_hash | Aaron Patterson | 2010-11-30 | 1 | -7/+7 | |
| | | ||||||
* | | Don't change tests, fix code: if locking is enabled skip IM. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | ||||||
* | | Query objects if readonly_value is false, skip them only if nil. | Emilio Tagua | 2010-11-19 | 1 | -3/+3 | |
| | | ||||||
* | | implicit_readonly is not set until records are loaded, just check ↵ | Emilio Tagua | 2010-11-19 | 1 | -3/+2 | |
| | | | | | | | | readonly_value and then set readonly status. | |||||
* | | Don't use identity map if loading readonly records, this will prevent ↵ | Emilio Tagua | 2010-11-19 | 1 | -2/+9 | |
|/ | | | | changing readonly status on already loaded records. | |||||
* | only returning where values for the corresponding relation, also filtering ↵ | Aaron Patterson | 2010-10-30 | 1 | -2/+7 | |
| | | | | where value hash based on table name [#5234 state:resolved] [#5184 state:resolved] | |||||
* | exec returns an AR::Result | Aaron Patterson | 2010-10-26 | 1 | -1/+1 | |
| | ||||||
* | adding bind_values to relations | Aaron Patterson | 2010-10-26 | 1 | -1/+1 | |
| | ||||||
* | in regexps, the dot in a character class is not a metacharacter | Xavier Noria | 2010-10-15 | 1 | -1/+1 | |
| | ||||||
* | where_values_hash always returns a hash | Aaron Patterson | 2010-09-28 | 1 | -1/+1 | |
| | ||||||
* | Set attributes properly for model built from association with conditions ↵ | Marcelo Giorgi | 2010-09-28 | 1 | -1/+5 | |
| | | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | @klass also uses DynamicFinderMatch, so no need for it on the relation | Aaron Patterson | 2010-09-27 | 1 | -9/+0 | |
| | ||||||
* | fixed some issues with JSON encoding | Jakub Suder | 2010-09-07 | 1 | -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> | |||||
* | Improved indentation | Pratik Naik | 2010-09-06 | 1 | -7/+3 | |
| | ||||||
* | we should mark strings as SQL Literal values | Aaron Patterson | 2010-08-23 | 1 | -1/+1 | |
| | ||||||
* | While creating a new record using has_many create method default scope of ↵ | Neeraj Singh | 2010-08-19 | 1 | -4/+7 | |
| | | | | | | | | | | | child should be respected. author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -4/+4 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -2/+2 | |
| | | | | This will hopefully make Active Record run a bit more faster. | |||||
* | do not rely on arel class structure | Aaron Patterson | 2010-08-06 | 1 | -1/+3 | |
| | ||||||
* | updating documentation to ensure line does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -6/+8 | |
| | ||||||
* | reducing function calls and using faster methods for testing | Aaron Patterson | 2010-07-30 | 1 | -7/+7 | |
| | ||||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -1/+1 | |
| | ||||||
* | adding a reader for loaded, initializing @loaded to false | Aaron Patterson | 2010-07-20 | 1 | -6/+3 | |
| | ||||||
* | enable AS::JSON.encode to encode AR::Relation by providing `as_json` method | Mislav Marohnić | 2010-07-13 | 1 | -1/+3 | |
| | | | | | | [#5073 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | fix ActiveRecord `destroy_all` so it returns destroyed records | Mislav Marohnić | 2010-07-08 | 1 | -2/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Tidy up deprecation message for with_exclusive_scope. | José Valim | 2010-06-29 | 1 | -1/+1 | |
| |