pulitzer 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pulitzer/content_element_helper.rb +6 -4
- data/lib/pulitzer/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: e61a452aa515b28cd72a1715faa6004fe2193511
|
4
|
+
data.tar.gz: a2a15e6004acfc366b1247fff6a72019e56b5dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6631fedcaa6af3c5981048cafc7e864e138b940184f35152bf4a801105ae818062c4c646a3bd0f501bb2f2a73c15480cc773fa6e74607f763d8f17ae2dc82a8e
|
7
|
+
data.tar.gz: 6d87ca8c57162679839156b15652faec23b92b46a0ae1abd1d17b2e65d811423b6965432d9f473b55e62527d824237597a20c909046d4ae2051d360d36e8f478
|
@@ -12,11 +12,13 @@ module Pulitzer
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def render_image(element,options = {})
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
if element.image?
|
16
|
+
pulitzer_options = {'data-pulitzer-element' => element.id}
|
17
|
+
if options.is_a? Hash
|
18
|
+
pulitzer_options.merge!(options)
|
19
|
+
end
|
20
|
+
image_tag element.image_url(:cms), pulitzer_options
|
18
21
|
end
|
19
|
-
image_tag element.image_url(:cms), pulitzer_options
|
20
22
|
end
|
21
23
|
|
22
24
|
def render_picture_source(element,options = {})
|
data/lib/pulitzer/version.rb
CHANGED