From 5b0a8916ea5a7c565aaf27964bf19a8f3bf5f558 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Sat, 2 Jun 2012 14:34:11 +0200 Subject: Fix asset tags for files with more than one dot 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) --- actionpack/test/fixtures/sprockets/app/javascripts/foo.min.js | 0 actionpack/test/fixtures/sprockets/app/stylesheets/style.min.css | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 actionpack/test/fixtures/sprockets/app/javascripts/foo.min.js create mode 100644 actionpack/test/fixtures/sprockets/app/stylesheets/style.min.css (limited to 'actionpack/test/fixtures') diff --git a/actionpack/test/fixtures/sprockets/app/javascripts/foo.min.js b/actionpack/test/fixtures/sprockets/app/javascripts/foo.min.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/actionpack/test/fixtures/sprockets/app/stylesheets/style.min.css b/actionpack/test/fixtures/sprockets/app/stylesheets/style.min.css new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3