Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use Enumerable#with_index. We're on Ruby > 1.8.7 | Akira Matsuda | 2011-07-08 | 1 | -2/+1 | |
| | ||||||
* | Add require ActiveSupport delegation to ActiveRecord::Relation class. | Dmitriy Kiriyenko | 2011-07-07 | 1 | -0/+1 | |
| | ||||||
* | default create_with_value to a hash so we can eliminate conditionals, add ↵ | Aaron Patterson | 2011-06-27 | 1 | -2/+3 | |
| | | | | test surrounding create_with(nil) behavior | |||||
* | Fix issue #1272 | Brian Mathiyakom | 2011-06-01 | 1 | -1/+1 | |
| | | | | | Set reverse_order_value when asked to reverse_order(). Do the actual reversal in build_arel. | |||||
* | delegate connection and column_hash calls directly to model | Hemant Kumar | 2011-05-28 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -2/+2 | |
|\ | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb | |||||
| * | Remove extra white spaces on ActiveRecord docs. | Sebastian Martinez | 2011-05-23 | 1 | -2/+2 | |
| | | ||||||
* | | Fix infinite recursion where a lazy default scope references a scope. Fixes ↵ | Jon Leighton | 2011-05-25 | 1 | -1/+1 | |
| | | | | | | | | #1264. | |||||
* | | Ensure that the surrounding code in Relation#to_a respects the default_scope ↵ | Jon Leighton | 2011-05-24 | 1 | -17/+24 | |
|/ | | | | (as well as having Relation#arel respect the default scope). Fixes #1233. | |||||
* | using bind parameters for updates | Aaron Patterson | 2011-04-30 | 1 | -1/+1 | |
| | ||||||
* | postgresql supports prepare statement deletes | Aaron Patterson | 2011-04-29 | 1 | -1/+3 | |
| | ||||||
* | Use existing #empty_insert_statement_value for an insert with no columns. | Ken Collins | 2011-04-24 | 1 | -1/+1 | |
| | ||||||
* | The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in ↵ | Ken Collins | 2011-04-23 | 1 | -1/+1 | |
| | | | | #insert to match replacement in #exec_query. | |||||
* | sort insert columns for better cache hits | Aaron Patterson | 2011-04-14 | 1 | -1/+1 | |
| | ||||||
* | refactoring inserts to use the same method on the connection | Aaron Patterson | 2011-04-14 | 1 | -21/+16 | |
| | ||||||
* | insert statements are prepared, but values are not escaped properly | Aaron Patterson | 2011-04-14 | 1 | -6/+24 | |
| | ||||||
* | ActiveRecord::Base.scopes hash is not needed | Jon Leighton | 2011-04-12 | 1 | -2/+0 | |
| | ||||||
* | Evaluate default scopes at the last possible moment in order to avoid ↵ | Jon Leighton | 2011-04-12 | 1 | -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 Leighton | 2011-04-12 | 1 | -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 Tagua | 2011-04-04 | 1 | -0/+3 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Quote find_in_batches ORDER BY clause [#6620 state:resolved] | Andrew White | 2011-03-29 | 1 | -1/+1 | |
| | ||||||
* | pushing id insertion and prefetch primary keys down to Relation#insert | Aaron Patterson | 2011-03-22 | 1 | -3/+14 | |
| | ||||||
* | 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. |