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.
# File actionpack/lib/action_view/renderable.rb, line 97 def recompile?(symbol) !(ActionView::PathSet::Path.eager_load_templates? && Base::CompiledTemplates.method_defined?(symbol)) end