From caf2390aee4ea0f097a219ee414d705dda63cc33 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 4 Nov 2013 12:42:45 -0200 Subject: Fix changelog indent [ci skip] --- activerecord/CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'activerecord') 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. -- cgit v1.2.3