Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | | ||||||
* | | correctly handle order calls after a reorder | Matt Jones + Scott Walker | 2012-01-03 | 3 | -7/+17 | |
|/ | ||||||
* | Deprecate implicit eager loading. Closes #950. | Jon Leighton | 2011-12-29 | 1 | -2/+2 | |
| | ||||||
* | Merge pull request #4216 from edgecase/master_fix_reorder_with_limited_ids | Aaron Patterson | 2011-12-28 | 1 | -1/+1 | |
|\ | | | | | allow reorder to affect eager loading correctly | |||||
| * | allow reorder to affect eager loading correctly | Matt Jones + Scott Walker | 2011-12-28 | 1 | -1/+1 | |
| | | ||||||
* | | refactor AR::PredicateBuilder.build_from_hash | Akira Matsuda | 2011-12-29 | 1 | -35/+37 | |
| | | ||||||
* | | where(foo: [1, nil]) becomes "WHERE foo = 1 OR foo IS NULL" | Akira Matsuda | 2011-12-28 | 1 | -1/+4 | |
| | | | | | | | | was "WHERE foo IN (1) OR foo IS NULL" before | |||||
* | | no need to compact an already compacted Array | Akira Matsuda | 2011-12-28 | 1 | -1/+1 | |
|/ | ||||||
* | Make PredicateBuilder recognise AR::Model | Jon Leighton | 2011-12-24 | 1 | -2/+2 | |
| | ||||||
* | Fix #exists? for AR::Model | Jon Leighton | 2011-12-24 | 1 | -1/+1 | |
| | ||||||
* | Delete unnecessary line that was necessary before I changed the code and it ↵ | Jon Leighton | 2011-12-22 | 1 | -1/+0 | |
| | | | | became no longer necessary. | |||||
* | Make ActiveRecord::Relation#pluck work with serialized attributes | Jon Leighton | 2011-12-22 | 1 | -4/+4 | |
| | ||||||
* | Do not raise an exception if an invalid route was generated automatically. | José Valim | 2011-12-16 | 1 | -1/+1 | |
| | ||||||
* | Set up delegations also for to_a and arel branches. | José Valim | 2011-12-15 | 1 | -2/+9 | |
| | ||||||
* | Move delegation reponsibilities of Relation to a module. Also precompile ↵ | José Valim | 2011-12-15 | 1 | -0/+42 | |
| | | | | method missing calls for rofscale. | |||||
* | ActiveRecord::Relation#pluck method | Bogdan Gusiev | 2011-11-30 | 1 | -0/+17 | |
| | ||||||
* | pushing caching and visitors down to the connection | Aaron Patterson | 2011-11-19 | 1 | -1/+1 | |
| | ||||||
* | Fixes issue #3483, regarding using a mixture of ranges and discrete values ↵ | Ryan Naughton | 2011-11-14 | 1 | -6/+8 | |
| | | | | in find conditions. Paired with Joey Schoblaska. | |||||
* | exclude ORDER BY clause when querying Relation#exists? | Akira Matsuda | 2011-11-09 | 1 | -1/+1 | |
| | ||||||
* | Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL query | Jon Leighton | 2011-11-05 | 1 | -6/+24 | |
| | ||||||
* | copy edits 908f2616 | Vijay Dev | 2011-09-20 | 1 | -4/+4 | |
| |