diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-29 19:27:19 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-29 19:27:19 -0600 |
commit | 558ab327b733717f4a8de3ed62b8dcd62e9ff9c3 (patch) | |
tree | c9fa54a925e8259057d8a6d9b20447d8ae8ea844 /actionpack/lib/action_view/renderable.rb | |
parent | 490c26c8433a6d278bc61118782da360e8889646 (diff) | |
download | rails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.tar.gz rails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.tar.bz2 rails-558ab327b733717f4a8de3ed62b8dcd62e9ff9c3.zip |
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
Diffstat (limited to 'actionpack/lib/action_view/renderable.rb')
-rw-r--r-- | actionpack/lib/action_view/renderable.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/renderable.rb b/actionpack/lib/action_view/renderable.rb index d8e72f1179..153e14f68b 100644 --- a/actionpack/lib/action_view/renderable.rb +++ b/actionpack/lib/action_view/renderable.rb @@ -60,7 +60,7 @@ module ActionView def compile(local_assigns) render_symbol = method_name(local_assigns) - if recompile?(render_symbol) + if !Base::CompiledTemplates.method_defined?(render_symbol) || recompile? compile!(render_symbol, local_assigns) end end @@ -89,11 +89,8 @@ module ActionView end end - # Method to check whether template compilation is necessary. - # 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) - !Base::CompiledTemplates.method_defined?(symbol) || !loaded? + def recompile? + false end end end |