diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-07-14 13:51:59 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-07-14 13:51:59 -0700 |
commit | 2d6562d51b96af518c1eb2947d6d34d5dd5bad12 (patch) | |
tree | ccb7d5bef041044ecd67298c198d8cec59d30744 /actionpack/lib/action_view/template_handlers/compilable.rb | |
parent | 3fbefecc9cdc0d1a903d6ab76170223166cc69ab (diff) | |
download | rails-2d6562d51b96af518c1eb2947d6d34d5dd5bad12.tar.gz rails-2d6562d51b96af518c1eb2947d6d34d5dd5bad12.tar.bz2 rails-2d6562d51b96af518c1eb2947d6d34d5dd5bad12.zip |
Move dead recompile_template? also
Diffstat (limited to 'actionpack/lib/action_view/template_handlers/compilable.rb')
-rw-r--r-- | actionpack/lib/action_view/template_handlers/compilable.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/lib/action_view/template_handlers/compilable.rb b/actionpack/lib/action_view/template_handlers/compilable.rb index 7e45761481..a0ebaefeef 100644 --- a/actionpack/lib/action_view/template_handlers/compilable.rb +++ b/actionpack/lib/action_view/template_handlers/compilable.rb @@ -15,18 +15,6 @@ module ActionView def render(template, local_assigns = {}) @view.send(:execute, template, local_assigns) end - - private - # Method to check whether template compilation is necessary. - # The template will be compiled if the inline template or file has not been compiled yet, - # if local_assigns has a new key, which isn't supported by the compiled code yet. - def recompile_template?(template) - # Unless the template has been compiled yet, compile - # If template caching is disabled, compile - # Always recompile inline templates - meth = Base::CompiledTemplates.instance_method(template.method) rescue nil - !meth || !Base.cache_template_loading || template.is_a?(InlineTemplate) - end end end end |