diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-09 07:14:24 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-11 15:03:52 -0700 |
commit | 04d4537cd40d0415d15af4395213632735c8683f (patch) | |
tree | 7a03845cceb50e14f75e83658e6651266975ff74 /actionpack/lib/action_view/template/resolver.rb | |
parent | 0a558b36eb3858ceeb926ada1388b0bd41da11f7 (diff) | |
download | rails-04d4537cd40d0415d15af4395213632735c8683f.tar.gz rails-04d4537cd40d0415d15af4395213632735c8683f.tar.bz2 rails-04d4537cd40d0415d15af4395213632735c8683f.zip |
This change causes some failing tests, but it should be possible to make them pass with minimal performance impact.
Diffstat (limited to 'actionpack/lib/action_view/template/resolver.rb')
-rw-r--r-- | actionpack/lib/action_view/template/resolver.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb index ebfc6cc8ce..3bd2acae7a 100644 --- a/actionpack/lib/action_view/template/resolver.rb +++ b/actionpack/lib/action_view/template/resolver.rb @@ -41,8 +41,10 @@ module ActionView end def handler_glob - e = TemplateHandlers.extensions.map{|h| ".#{h},"}.join - "{#{e}}" + @handler_glob ||= begin + e = TemplateHandlers.extensions.map{|h| ".#{h},"}.join + "{#{e}}" + end end def formats_glob |