diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-26 20:54:47 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-26 20:54:47 -0600 |
commit | 4d910b033379727e5e7355590c50c72fc75e56db (patch) | |
tree | ada3e45bf32d37d8f17f6ea944c8400912da26a8 /actionpack/lib/action_view/renderable.rb | |
parent | 9d2002a12a473f5b35c52db82518f4631776414f (diff) | |
download | rails-4d910b033379727e5e7355590c50c72fc75e56db.tar.gz rails-4d910b033379727e5e7355590c50c72fc75e56db.tar.bz2 rails-4d910b033379727e5e7355590c50c72fc75e56db.zip |
Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache.
Diffstat (limited to 'actionpack/lib/action_view/renderable.rb')
-rw-r--r-- | actionpack/lib/action_view/renderable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/renderable.rb b/actionpack/lib/action_view/renderable.rb index 5ff5569db6..c04399f2c9 100644 --- a/actionpack/lib/action_view/renderable.rb +++ b/actionpack/lib/action_view/renderable.rb @@ -96,7 +96,7 @@ module ActionView # The template will be compiled if the file has not been compiled yet, or # if local_assigns has a new key, which isn't supported by the compiled code yet. def recompile?(symbol) - !(ActionView::PathSet::Path.eager_load_templates? && Base::CompiledTemplates.method_defined?(symbol)) + !(frozen? && Base::CompiledTemplates.method_defined?(symbol)) end end end |