rails_responsive_images 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rails_responsive_images/version.rb +1 -1
- data/lib/rails_responsive_images.rb +2 -3
- 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: 13049b1147fe8e29db96643666c275b9a30ea48e
|
4
|
+
data.tar.gz: f762fe8b1e23f2b539ffab1fc2017b902e1ba5a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9797bd598b532e3743e1ebeee890c7826817baef58a7502a57f6ca7312ba4edf2b53d920c862c4bffd8f19d55a991d7e29a2ae2fa2e47177aa6f97e7b759863d
|
7
|
+
data.tar.gz: b2b1b479247b67706c6767534d8fa19f268746f97a570bcabe2640827364a932edc99c5fdfe568fbf9547d0c70cefc3980448d4cf8795fe9365a2e4298da117c
|
@@ -37,9 +37,8 @@ ActionView::Helpers::AssetTagHelper.module_eval do
|
|
37
37
|
content_tag :picture do
|
38
38
|
original_filepath = path.sub(/\A\/assets/, '')
|
39
39
|
::RailsResponsiveImages.configuration.image_sizes.each do |size|
|
40
|
-
|
41
|
-
|
42
|
-
concat content_tag(:source, '', media: "(max-width: #{size}px)", srcset: responsive_file_name)
|
40
|
+
responsive_image_path = image_path("responsive_images_#{size}/#{original_filepath}")
|
41
|
+
concat content_tag(:source, '', media: "(max-width: #{size}px)", srcset: responsive_image_path)
|
43
42
|
end
|
44
43
|
concat image_tag_without_responsiveness(path, options)
|
45
44
|
end
|