static public Method

TemplateFinder.update_extension_cache_for(extension)

There's no documentation for this item.

Source Code

# File action_view/template_finder.rb, line 43
def update_extension_cache_for(extension)
  @@processed_view_paths.keys.each do |dir|
    Dir.glob("#{dir}/**/*.#{extension}").each do |file|
      key = file.split(dir).last.sub(/^\//, '').sub(/\.(\w+)$/, '')
      @@file_extension_cache[dir][key] << extension
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.