public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/ddollar/rails.git
Fixed that the Query Cache should just be ignored if the database is 
misconfigured (so that the "About your applications environment" works 
even before the database has been created) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8325 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Thu Dec 06 14:05:48 -0800 2007
commit  731ecec15ee306049bc33af6966f877ad4f67d27
tree    4ebcda44ec65c066728e23a368450beb75244921
parent  699da7001b9e3d35c282ab3eb5371ba668bdeaa3
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *2.0.0* (December 6th, 2007)
0
 
0
+* Fixed that the Query Cache should just be ignored if the database is misconfigured (so that the "About your applications environment" works even before the database has been created) [DHH]
0
+
0
 * Fixed that the truncation of strings longer than 50 chars should use inspect so newlines etc are escaped #10385 [norbert]
0
 
0
 * Fixed that habtm associations should be able to set :select as part of their definition and have that honored [DHH]
...
7
8
9
 
 
10
11
12
...
7
8
9
10
11
12
13
14
0
@@ -7,6 +7,8 @@ module ActiveRecord
0
       else
0
         connection.cache(&block)
0
       end
0
+ rescue
0
+ yield # if the database is not present, don't let the cache spoil the party
0
     end
0
 
0
     # Disable the query cache within the block if Active Record is configured.

Comments

    No one has commented yet.