This method is deprecated or moved on the latest stable version.
The last existing version (v2.1.0) is shown here.
compile_template?(template)
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, or if the file has changed on disk and checking file mods
hasn’t been disabled.
# File actionpack/lib/action_view/template_handlers/compilable.rb, line 63
def compile_template?(template)
method_key = template.method_key
render_symbol = @view.method_names[method_key]
compile_time = self.compile_time[render_symbol]
if compile_time && supports_local_assigns?(render_symbol, template.locals)
if template.filename && !@view.cache_template_loading
template_changed_since?(template.filename, compile_time)
end
else
true
end
end