public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/ddollar/rails.git
Search Repo:
Fixed that cached template loading would still check the file system to 
see if the file existed #258 [Andreas Schwarz]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@43 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Wed Dec 01 08:10:40 -0800 2004
commit  6cc961555d723e23a8a932398fe2aa2073cb8d6e
tree    1e6110974eb76c089d85b945afdac410e580b840
parent  9a248a83b5b129ed589f8d829b6ce7316bc1a272
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Fixed that cached template loading would still check the file system to see if the file existed #258 [Andreas Schwarz]
0
+
0
 * Added options to tailor header tag, div id, and div class on ActiveRecordHelper#error_messages_for [josh]
0
 
0
 * Added graceful handling of non-alphanumeric names and misplaced brackets in input parameters [bitsweat]
...
238
239
240
241
 
 
242
243
244
...
238
239
240
 
241
242
243
244
245
0
@@ -238,7 +238,8 @@ module ActionView #:nodoc:
0
       end
0
 
0
       def template_exists?(template_path, extension)
0
- FileTest.exists?(full_template_path(template_path, extension))
0
+ (cache_template_loading && @@loaded_templates.has_key?(template_path)) ||
0
+ FileTest.exists?(full_template_path(template_path, extension))
0
       end
0
 
0
       def read_template_file(template_path)

Comments

    No one has commented yet.