simple_attribute 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5a84ac7a80f0837ac35807f6406dfcd7a0624ca7793dd545f80f365c951fb845
|
4
|
+
data.tar.gz: 4d989113362d936ca25f234e45b1c3ae80d137b99c8178ecd84807f1042af974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec335fbdb9de65566f03827661e1e470db7af2fa705c941d4c2bb4593ad2aca7e17517f5442cdb57e299d22e34ede2797feee783cf54a8fb6f05e69b0fb8d295
|
7
|
+
data.tar.gz: 4a4b6ea002b093ab7803084933770d1d49e030f401c3557a871b4bc2651ff35f3985c9e6aae420345c5fb5fe10dfe2880831467f94092d173c7c944f4dbb7af0
|
@@ -15,7 +15,7 @@ module SimpleAttribute
|
|
15
15
|
|
16
16
|
if 'image'.in?("#{@media_type}")
|
17
17
|
default_url = asset_url(default_value)
|
18
|
-
|
18
|
+
content_tag :img, nil, html_options.reverse_merge(src: default_url)
|
19
19
|
else
|
20
20
|
super
|
21
21
|
end
|
@@ -23,7 +23,7 @@ module SimpleAttribute
|
|
23
23
|
|
24
24
|
# Render attribute
|
25
25
|
def render_attribute
|
26
|
-
|
26
|
+
content_tag :img, nil, html_options.reverse_merge(src: value)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonian Guveli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.7.7
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Decorate ActiveRecord model attributes
|