diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-07 00:46:06 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-07 00:46:06 -0200 |
commit | 23b9cc84230042aaf7f824d70e010d7678350ec3 (patch) | |
tree | 341defb7a050322abad1f3e08014f5220e759553 /activerecord/CHANGELOG.md | |
parent | cf05e5f6ea9d5d883ed510dd01531a13ff488182 (diff) | |
parent | de75af7acc5c05c708443de40e78965925165217 (diff) | |
download | rails-23b9cc84230042aaf7f824d70e010d7678350ec3.tar.gz rails-23b9cc84230042aaf7f824d70e010d7678350ec3.tar.bz2 rails-23b9cc84230042aaf7f824d70e010d7678350ec3.zip |
Merge pull request #8332 from amatsuda/ar_where_chain
Relation.where with no args can be chained with not, like, and not_like
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/relation/query_methods.rb
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index e79c7cb64f..9798f783c1 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,14 @@ ## Rails 4.0.0 (unreleased) ## +* Allow `Relation#where` with no arguments to be chained with new query methods + `not`, `like`, and `not_like`. + + Example: + + Developer.where.not(name: 'Aaron').where.like(name: 'Takoyaki%') + + *Akira Matsuda* + * Unscope `update_column(s)` query to ignore default scope. When applying `default_scope` to a class with a where clause, using |