Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | doesn't make sense for select! to take a block | Jon Leighton | 2012-04-13 | 1 | -8/+3 |
| | |||||
* | remove apply_finder_options call from AssociationScope | Jon Leighton | 2012-04-13 | 2 | -2/+2 |
| | |||||
* | Make Relation#extending work like other value methods | Jon Leighton | 2012-04-13 | 3 | -16/+9 |
| | |||||
* | Add Relation#merge! | Jon Leighton | 2012-04-13 | 1 | -9/+12 |
| | |||||
* | assert valid keys | Jon Leighton | 2012-04-13 | 1 | -0/+5 |
| | |||||
* | Allow Relation#merge to take a hash | Jon Leighton | 2012-04-13 | 2 | -46/+74 |
| | |||||
* | we have no need for the ASSOCIATION_METHODS constant | Jon Leighton | 2012-04-13 | 2 | -3/+3 |
| | |||||
* | refactoring | Jon Leighton | 2012-04-13 | 1 | -36/+45 |
| | |||||
* | Extract clusterfuck method for surgery | Jon Leighton | 2012-04-13 | 2 | -71/+92 |
| | |||||
* | mention that coercion only happens when the primary key is an integer and ↵ | Reg Braithwaite | 2012-04-12 | 1 | -2/+2 |
| | | | | use +to_i+ formatting | ||||
* | Documents that ActiveRecord's find by id uses to_i to coerce its arguments ↵ | Reg Braithwaite | 2012-04-12 | 1 | -1/+3 |
| | | | | to integers | ||||
* | Add bang versions of relation query methods. | Jon Leighton | 2012-04-12 | 1 | -84/+135 |
| | | | | | The main reason for this is that I want to separate the code that does the mutating from the code that does the cloning. | ||||
* | move apply_finder_options to active_record_deprecated_finders | Jon Leighton | 2012-04-12 | 1 | -22/+0 |
| | |||||
* | Add Relation#find_by and Relation#find_by! | Jon Leighton | 2012-03-30 | 1 | -0/+19 |
| | |||||
* | Remove Arel::Relation constant from PredicateBuilder. | Juanjo Bazán | 2012-03-27 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-03-27 | 1 | -1/+1 |
|\ | |||||
| * | Missing generated query for pluck method. | Juanjo Bazán | 2012-03-27 | 1 | -1/+1 |
| | | | | | | (and changed the use of true for a more database agnostic example). | ||||
* | | Remove 'needless boolean casting'. | Jack Chen (chendo) | 2012-03-26 | 1 | -1/+1 |
|/ | | | | | "Predicates in Rails rely on standard Ruby semantics for boolean values and guarantee no singletons whatsoever." - @fxn | ||||
* | Remove IdentityMap | Carlos Antonio da Silva | 2012-03-13 | 1 | -10/+0 |
| | |||||
* | Add dynamic find_or_create_by_{attribute}! method. | Andrew White | 2012-03-12 | 1 | -1/+1 |
| | |||||
* | fix activerecord query_method regression with offset into Fixnum | Denis Jean | 2012-03-12 | 1 | -1/+1 |
| | | | | | | add test to show offset query_methods on mysql & mysql2 change test to cover public API | ||||
* | Merge pull request #5255 from carlosantoniodasilva/active-record-review | Piotr Sarnacki | 2012-03-03 | 1 | -14/+13 |
|\ | | | | | Refactor and cleanup in some ActiveRecord modules | ||||
| * | Refactor and cleanup in some ActiveRecord modules | Carlos Antonio da Silva | 2012-03-03 | 1 | -14/+13 |
| | | | | | | | | | | | | | | | | | | | | | | * Avoid double hash lookups in AR::Reflection when reflecting associations/aggregations * Minor cleanups: use elsif, do..end, if..else instead of unless..else * Simplify DynamicMatchers#respond_to? * Use "where" instead of scoped with conditions hash * Extract `scoped_by` method pattern regexp to constant * Extract noisy class_eval from method_missing in dynamic matchers * Extract readonly check, avoid calling column#to_s twice in persistence * Refactor predicate builder, remove some variables | ||||
* | | Merge pull request #4984 from raghunadhd/change_orderhash | Vijay Dev | 2012-03-03 | 1 | -1/+1 |
|\ \ | |/ |/| | Refactored code | ||||
| * | Refactored code | Raghunadh | 2012-02-10 | 1 | -1/+1 |
| | | |||||
* | | use bind values for join columns | Aaron Patterson | 2012-02-27 | 3 | -6/+10 |
| | | |||||
* | | use regular ruby for fewer method calls. we do not need :gift:s! | Aaron Patterson | 2012-02-24 | 1 | -1/+4 |
| | | |||||
* | | prepared statements can be disabled | Aaron Patterson | 2012-02-21 | 1 | -1/+1 |
| | | |||||
* | | typecast columns based on the returned types | Aaron Patterson | 2012-02-09 | 1 | -2/+14 |
|/ | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-02-09 | 1 | -2/+2 |
|\ | | | | | | | | | Conflicts: activerecord/lib/active_record/relation/query_methods.rb | ||||
| * | use appropriate words for docs of Model.none | Rohit Arondekar | 2012-02-07 | 1 | -2/+2 |
| | | |||||
| * | minor tidy up of none relation query method | Rohit Arondekar | 2012-02-06 | 1 | -2/+2 |
| | | |||||
| * | Fix code example in ActiveRecord::Relation#none | Carlos Antonio da Silva | 2012-02-01 | 1 | -3/+3 |
| | | |||||
* | | AR::Relation#pluck: improve to work with joins | Bogdan Gusiev | 2012-02-08 | 1 | -0/+3 |
| | | |||||
* | | document the AR none method [ci skip] | Vijay Dev | 2012-02-01 | 1 | -7/+7 |
|/ | |||||
* | Revert "Merge pull request #4746 from jenslukowski/issue4718" | Aaron Patterson | 2012-01-31 | 1 | -8/+1 |
| | | | | | This reverts commit 5cad7a0dba652f3e942e58087bc88ba5c5390edc, reversing changes made to bb842e8d2111e50b21a14b8bd6d89371a4b9cd68. | ||||
* | Merge pull request #4805 from xuanxu/none_and_null_object_pattern | Jon Leighton | 2012-01-31 | 1 | -0/+33 |
|\ | | | | | Added `none` query method to return zero records. | ||||
| * | Added `none` query method to return zero records. | Juanjo Bazán | 2012-01-31 | 1 | -0/+33 |
| | | | | | | And added NullRelation class implementing the null object pattern for the `Relation` class. | ||||
* | | Merge pull request #4746 from jenslukowski/issue4718 | Aaron Patterson | 2012-01-31 | 1 | -1/+8 |
|\ \ | |/ |/| | Test and fix for issue 4718 | ||||
| * | fix for Issue 4718 | Jens Lukowski | 2012-01-29 | 1 | -1/+8 |
| | | |||||
* | | rewrites a couple of alternations in regexps as character classes | Xavier Noria | 2012-01-30 | 1 | -1/+1 |
|/ | | | | | Character classes are the specific regexp construct to express alternation of individual characters. | ||||
* | select doesn't take multiple arguments - fixes #4539 [ci skip] | Vijay Dev | 2012-01-19 | 1 | -5/+5 |
| | | | | | Also, fixed the bit about returning AM::MissingAttributeError. This seems to be fixed earlier in 3-2-stable only. | ||||
* | Deprecate inferred JOINs with includes + SQL snippets. | Jon Leighton | 2012-01-16 | 1 | -2/+2 |
| | | | | | | See the CHANGELOG for details. Fixes #950. | ||||
* | infer references from Relation#order | Jon Leighton | 2012-01-16 | 1 | -1/+7 |
| | |||||
* | store references as a string | Jon Leighton | 2012-01-16 | 1 | -1/+1 |
| | |||||
* | automatically add references when we can | Jon Leighton | 2012-01-16 | 2 | -1/+15 |
| | |||||
* | Add ActiveRecord::Relation#references (#950) | Jon Leighton | 2012-01-16 | 1 | -1/+19 |
| | |||||
* | Revert "Deprecate implicit eager loading. Closes #950." | Jon Leighton | 2012-01-16 | 1 | -2/+2 |
| | | | | This reverts commit c99d507fccca2e9e4d12e49b4387e007c5481ae9. | ||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-01-11 | 1 | -0/+10 |
|\ | |||||
| * | add documentation explaining reorder behavior | Matt Jones | 2012-01-09 | 1 | -0/+10 |
| | |