Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | 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 | |
| | ||||||
* | Add scoping and unscoped as the syntax to replace the old with_scope and ↵ | José Valim | 2010-06-29 | 1 | -20/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with_exclusive_scope. A few examples: * with_scope now should be scoping: Before: Comment.with_scope(:find => { :conditions => { :post_id => 1 } }) do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end After: Comment.where(:post_id => 1).scoping do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end * with_exclusive_scope now should be unscoped: class Post < ActiveRecord::Base default_scope :published => true end Post.all #=> SELECT * FROM posts WHERE published = true Before: Post.with_exclusive_scope do Post.all #=> SELECT * FROM posts end After: Post.unscoped do Post.all #=> SELECT * FROM posts end Notice you can also use unscoped without a block and it will return an anonymous scope with default_scope values: Post.unscoped.all #=> SELECT * FROM posts | |||||
* | blocks removed from all the ActiveRelation query_methods, extend method ↵ | Santiago Pastorino | 2010-06-26 | 1 | -0/+9 | |
| | | | | | | added instead Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | adding fix for to_xml for ActiveRecord relation object | Neeraj Singh | 2010-06-23 | 1 | -1/+1 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | ActiveRecord's relation object should respond to to_json and to_yaml | Neeraj Singh | 2010-06-23 | 1 | -1/+1 | |
| | | | | | | [#4547 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Adds basic description and title. | Rizwan Reza | 2010-06-16 | 1 | -2/+6 | |
| | ||||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 | |
| | ||||||
* | ignore raw_sql_ table alias that is used by Oracle adapter | Raimonds Simanovskis | 2010-06-04 | 1 | -1/+2 | |
| | ||||||
* | downcase table names in aliased_table_name_for and ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -2/+4 | |
| | | | | references_eager_loaded_tables? methods (as Oracle quoted table names are in uppercase) |