inline_stylesheet_tag 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inline_stylesheet_tag/version.rb +1 -1
- data/lib/inline_stylesheet_tag/view_helper.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: a585815db701444ac9f1801e1539181224bd5676
|
4
|
+
data.tar.gz: 46e4ad6a64e807f44afe9e6af1a995f6f747094d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07652e7aa569c1577a10915aeb47a3942f08786467630de2a537cd0ce2f68e97c46aaba3e650c8e43df7166f86549e205e4bb8bc15fba2ff4a045e31a2cea54c
|
7
|
+
data.tar.gz: 7886de5befaf082fd6b3e5e6858d550cd147c2e372477b799644165c47302fae65554c0df4d2f73c31f6b73d4a4a1b1624cb3b0302887afda9a0ebf9455c6b1a
|
@@ -9,7 +9,7 @@ module InlineStylesheetTag::ViewHelpers
|
|
9
9
|
Rails.cache.fetch("inline-css-#{Digest::MD5.hexdigest(url)}", expires_in: 1.hour) do
|
10
10
|
content = fetch_inline_stylesheet_tag(url) rescue nil
|
11
11
|
if content.present?
|
12
|
-
content_tag(:style, content.html_safe
|
12
|
+
content_tag(:style, content.html_safe)
|
13
13
|
else
|
14
14
|
stylesheet_link_tag url, *more
|
15
15
|
end
|