diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-23 13:47:30 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-23 13:47:30 -0500 |
commit | 55adaa2efc08c892bf7be55d79ac571848068256 (patch) | |
tree | 1e52562f708f64d38ad95e57e42ab39c3ff82ab2 /actionpack/lib/action_view/renderable.rb | |
parent | e0db925be04ab3e9c3db67dd0daa8caf3680dd21 (diff) | |
download | rails-55adaa2efc08c892bf7be55d79ac571848068256.tar.gz rails-55adaa2efc08c892bf7be55d79ac571848068256.tar.bz2 rails-55adaa2efc08c892bf7be55d79ac571848068256.zip |
Fixed bc5896e, and added test case for the caching bug it originally introduced.
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 2b825ac4e9..5fe1ca86f3 100644 --- a/actionpack/lib/action_view/renderable.rb +++ b/actionpack/lib/action_view/renderable.rb @@ -84,7 +84,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) - !(frozen? && Base::CompiledTemplates.method_defined?(symbol)) + !(ActionView::PathSet::Path.eager_load_templates? && Base::CompiledTemplates.method_defined?(symbol)) end end end |