aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-08-03 17:16:43 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-08-03 17:16:43 +0000
commit8085cbfd0898676ffaea2f2d1c2616e47a37e5e1 (patch)
tree5064c9757830db87b260eca6d284dabd42c1fe94 /activerecord/CHANGELOG
parent29ae3e90988a9edf09d85ed32d5aac76fa199341 (diff)
downloadrails-8085cbfd0898676ffaea2f2d1c2616e47a37e5e1.tar.gz
rails-8085cbfd0898676ffaea2f2d1c2616e47a37e5e1.tar.bz2
rails-8085cbfd0898676ffaea2f2d1c2616e47a37e5e1.zip
Added support for conditions on Base.exists? (closes #5689) [josh@joshpeek.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 76973e4529..70cf37a7ac 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,11 @@
*SVN*
+* Added support for conditions on Base.exists? #5689 [josh@joshpeek.com]. Examples:
+
+ assert (Topic.exists?(:author_name => "David"))
+ assert (Topic.exists?(:author_name => "Mary", :approved => true))
+ assert (Topic.exists?(["parent_id = ?", 1]))
+
* Schema dumper quotes date :default values. [Dave Thomas]
* Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]