classy_assets 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/classy_assets.rb +1 -1
- data/lib/classy_assets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 909c4fabb4f2b383fab7eec2263ae91010b03ccc
|
4
|
+
data.tar.gz: 63a1ec5e8a26ebefbf83dbb29ed8390ff376e82b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a8984174bbebfee5525d49883467e6267075ea08bd1fdb79b6efc6da14b2f9288edfaad0583f6b60c1e4c836639c9b5dc7f6025d0936cdc46d058b1c3856da
|
7
|
+
data.tar.gz: 02228e6490697a09c0621ec9d1b917c6fbcbfe5198bfff2e15e677a758c7d71e2d8100a8093ff4ead34c1e5adbaea6b2f2477965bde6c7ef0a9e339214beb6f7
|
data/lib/classy_assets.rb
CHANGED
@@ -49,7 +49,7 @@ module ClassyAssets
|
|
49
49
|
sources = [sources] unless sources.is_a? Array
|
50
50
|
sources.map do |source|
|
51
51
|
source = "#{source}.#{ext}" unless source =~ /\.#{ext}$/
|
52
|
-
asset_url = (source =~
|
52
|
+
asset_url = (source =~ /^\/|http/) ? source : asset_url_for(source)
|
53
53
|
yield(asset_url)
|
54
54
|
end.join('')
|
55
55
|
end
|