public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
need to make sure the asset type is cached with it in Cache.. name is 
sufficient, not self

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
aaronbatalion (author)
Wed Nov 19 15:10:02 -0800 2008
jeremy (committer)
Wed Nov 19 15:56:38 -0800 2008
commit  e54c33bfc8eab7ac482d571ab6bb0285b40fa56b
tree    0793e10640b72409f04718917efc66012415b669
parent  d7f4921a9a852da7c1075275eaf73822edb7acff
...
538
539
540
541
 
542
543
544
545
546
 
547
548
549
...
538
539
540
 
541
542
543
544
545
 
546
547
548
549
0
@@ -538,12 +538,12 @@ module ActionView
0
             @source = source
0
             @include_host = include_host
0
             @cache_key = if controller.respond_to?(:request)
0
-              [controller.request.protocol,
0
+              [self.class.name,controller.request.protocol,
0
                ActionController::Base.asset_host,
0
                ActionController::Base.relative_url_root,
0
                source, include_host]
0
             else
0
-              [ActionController::Base.asset_host, source, include_host]
0
+              [self.class.name,ActionController::Base.asset_host, source, include_host]
0
             end
0
           end
0
           
...
648
649
650
 
 
 
 
 
 
651
...
648
649
650
651
652
653
654
655
656
657
0
@@ -648,4 +648,10 @@ class AssetTagHelperNonVhostTest < ActionView::TestCase
0
   ensure
0
     ActionController::Base.asset_host = nil
0
   end
0
+
0
+  def test_assert_css_and_js_of_the_same_name_return_correct_extension
0
+    assert_dom_equal(%(/collaboration/hieraki/javascripts/foo.js), javascript_path("foo"))
0
+    assert_dom_equal(%(/collaboration/hieraki/stylesheets/foo.css), stylesheet_path("foo"))
0
+
0
+  end
0
 end

Comments