aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderable.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-29 19:27:19 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-29 19:27:19 -0600
commit558ab327b733717f4a8de3ed62b8dcd62e9ff9c3 (patch)
treec9fa54a925e8259057d8a6d9b20447d8ae8ea844 /actionpack/lib/action_view/renderable.rb
parent490c26c8433a6d278bc61118782da360e8889646 (diff)
downloadrails-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.rb9
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