Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8809: assets_caching_doc_patch.diff

File assets_caching_doc_patch.diff, 1.4 kB (added by sergey, 1 year ago)

patch to asset_tag_helper.rb

  • asset_tag_helper.rb

    old new  
    171171      # 
    172172      #   javascript_include_tag "prototype", "cart", "checkout", :cache => "shop" # when ActionController::Base.perform_caching is false => 
    173173      #     <script type="text/javascript" src="/javascripts/shop.js"></script> 
     174      # 
     175      # Note: that cache file (all.js) will be NOT auto updated when one of cached file (e.g. cart.js) changed.  
     176      # You should remove cache file as part of your server update procedure. 
    174177      def javascript_include_tag(*sources) 
    175178        options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } 
    176179        cache   = options.delete("cache") 
     
    280283      # 
    281284      #   stylesheet_link_tag "shop", "cart", "checkout", :cache => "payment" # when ActionController::Base.perform_caching is true => 
    282285      #     <link href="/stylesheets/payment.css"  media="screen" rel="Stylesheet" type="text/css" /> 
     286      # 
     287      # Note: that cache file (all.css) will be NOT auto updated when one of cached file (e.g. cart.css) changed.  
     288      # You should remove cache file as part of your server update procedure. 
    283289      def stylesheet_link_tag(*sources) 
    284290        options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } 
    285291        cache   = options.delete("cache")