Sha256: 5c2a85bbfce67e17f323b5d4bbd39f6cae5057b4c982cfe30460ec88dd9f12c6
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
module RailsAppcache module ApplicationHelper def appcache_manifest_path(path) return "" unless RailsAppcache.config.perform_caching? "/#{path}-#{appcache_version_string}.appcache" end # In development, serve up a new manifest every time # In production, serve the current Git revision def appcache_version_string RailsAppcache.config.version end def stylesheet_cache_path(*paths) tags = stylesheet_link_tag(*paths) tags.scan(/href="(.*?)"/).map do |match| match[0].html_safe end.join("\n") end def javascript_cache_path(*paths) tags = javascript_include_tag(*paths) tags.scan(/src="(.*?)"/).map do |match| match[0].html_safe end.join("\n") end def asset_cache_path(path) asset_path(path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_appcache-0.0.5 | lib/rails_appcache/application_helper.rb |