diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-04 12:42:45 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-04 12:42:47 -0200 |
commit | caf2390aee4ea0f097a219ee414d705dda63cc33 (patch) | |
tree | 08e35dad843cb87baac0d98964626817ba04c37b /activerecord | |
parent | 84eac5dab8b0fe9ee20b51250e52ad7bfea36553 (diff) | |
download | rails-caf2390aee4ea0f097a219ee414d705dda63cc33.tar.gz rails-caf2390aee4ea0f097a219ee414d705dda63cc33.tar.bz2 rails-caf2390aee4ea0f097a219ee414d705dda63cc33.zip |
Fix changelog indent [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index aa1e997ece..0497f6326e 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -4,13 +4,13 @@ * Added ActiveRecord::QueryMethods#rewhere which will overwrite an existing, named where condition. - Examples: - - Post.where(trashed: true).where(trashed: false) #=> WHERE `trashed` = 1 AND `trashed` = 0 - Post.where(trashed: true).rewhere(trashed: false) #=> WHERE `trashed` = 0 - Post.where(active: true).where(trashed: true).rewhere(trashed: false) #=> WHERE `active` = 1 AND `trashed` = 0 + Examples: - *DHH* + Post.where(trashed: true).where(trashed: false) #=> WHERE `trashed` = 1 AND `trashed` = 0 + Post.where(trashed: true).rewhere(trashed: false) #=> WHERE `trashed` = 0 + Post.where(active: true).where(trashed: true).rewhere(trashed: false) #=> WHERE `active` = 1 AND `trashed` = 0 + + *DHH* * Extend ActiveRecord::Base#cache_key to take an optional list of timestamp attributes of which the highest will be used. |