Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-12-07 13:34:06 +00:00
parent db885e81b9
commit 7f02cdd4a0
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
*2.0.1* (December 7th, 2007)
* Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH]
*2.0.0* (December 6th, 2007)
* Anchor DateTimeTest to fixed DateTime instead of a variable value based on Time.now#advance#to_datetime, so that this test passes on 64-bit platforms running Ruby 1.8.6+ [Geoff Buesing]

View File

@ -7,8 +7,6 @@ module ActiveRecord
else
connection.cache(&block)
end
rescue
yield # if the database is not present, don't let the cache spoil the party
end
# Disable the query cache within the block if Active Record is configured.

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/ruby
#!/usr/bin/env ruby
VERSION = ARGV.first
PACKAGES = %w(activesupport activerecord actionpack actionmailer activeresource)