aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/paths.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-11-28 14:31:54 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-28 14:31:54 -0600
commit9fccf72725a72baeda508eccd6113b44329e0a7c (patch)
tree095f57040de3506bc275737f2e5409f972cf22ac /actionpack/lib/action_view/paths.rb
parent9fc23745f1511d8d97433828d9ca87970994d138 (diff)
downloadrails-9fccf72725a72baeda508eccd6113b44329e0a7c.tar.gz
rails-9fccf72725a72baeda508eccd6113b44329e0a7c.tar.bz2
rails-9fccf72725a72baeda508eccd6113b44329e0a7c.zip
fixed template recompile issue with previous commit and add some better tests so we can make sure it doesn't happen again
Diffstat (limited to 'actionpack/lib/action_view/paths.rb')
-rw-r--r--actionpack/lib/action_view/paths.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/paths.rb b/actionpack/lib/action_view/paths.rb
index f01ed9e6e0..ecb6103ade 100644
--- a/actionpack/lib/action_view/paths.rb
+++ b/actionpack/lib/action_view/paths.rb
@@ -102,7 +102,7 @@ module ActionView #:nodoc:
@paths = {}
templates_in_path do |template|
- template.freeze
+ template.load!
@paths[template.path] = template
@paths[template.path_without_extension] ||= template
end