Skip to content
  • Piotr Sarnacki's avatar
    5b0a8916
    Fix asset tags for files with more than one dot · 5b0a8916
    Piotr Sarnacki authored
    After the fix done in 39f9f02a, there are cases that will not work
    correctly. If you have file with "2 extensions", like foo.min.js and you
    reference the file without extension, like:
    
        javascript_include_tag "foo.min"
    
    it will fail because sprockets finds foo.min.js with foo.min argument.
    
    This commit fixes this case and will get the right file even when
    referrencing it without extension.
    
    (closes #6598)
    5b0a8916
    Fix asset tags for files with more than one dot
    Piotr Sarnacki authored
    After the fix done in 39f9f02a, there are cases that will not work
    correctly. If you have file with "2 extensions", like foo.min.js and you
    reference the file without extension, like:
    
        javascript_include_tag "foo.min"
    
    it will fail because sprockets finds foo.min.js with foo.min argument.
    
    This commit fixes this case and will get the right file even when
    referrencing it without extension.
    
    (closes #6598)
Loading