mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
9a248a83b5
commit
6cc961555d
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Fixed that cached template loading would still check the file system to see if the file existed #258 [Andreas Schwarz]
|
||||
|
||||
* Added options to tailor header tag, div id, and div class on ActiveRecordHelper#error_messages_for [josh]
|
||||
|
||||
* Added graceful handling of non-alphanumeric names and misplaced brackets in input parameters [bitsweat]
|
||||
|
|
|
@ -238,7 +238,8 @@ module ActionView #:nodoc:
|
|||
end
|
||||
|
||||
def template_exists?(template_path, extension)
|
||||
FileTest.exists?(full_template_path(template_path, extension))
|
||||
(cache_template_loading && @@loaded_templates.has_key?(template_path)) ||
|
||||
FileTest.exists?(full_template_path(template_path, extension))
|
||||
end
|
||||
|
||||
def read_template_file(template_path)
|
||||
|
|
Loading…
Reference in a new issue