simple_model_view 0.1.0 → 0.1.1
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d922d6619f8fb27e02eacc57b7b6e8b443de2bbb91ccf873c80df796f971a79f
|
4
|
+
data.tar.gz: 1b0fc673f43fdeb12ba2fff645749e7f16e6c75b68b907b667b9e7fca795ffcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ac64f0364d9f030cfabf64e5503c0396de5f4071657da007ab36c9c75d999e18832936171166fb42b8c8657321e9938fdc2792adce6275163d505925d1386e
|
7
|
+
data.tar.gz: 0b14978e38341d55be102fdbef3c6c32a41b78e768d04b89de47e05ac259e291715afd684fa8e9f97a026520d4964cadb808a43a77c31b6bbe2b63f6941debbc
|
data/CHANGELOG.md
CHANGED
@@ -32,8 +32,8 @@ module SimpleModelView
|
|
32
32
|
return @collection_class unless @collection_class.nil?
|
33
33
|
|
34
34
|
@collection_class =
|
35
|
-
if defined?(ActiveRecord::Relation) && collection < ActiveRecord::Relation
|
36
|
-
collection.new
|
35
|
+
if defined?(ActiveRecord::Relation) && collection.class < ActiveRecord::Relation
|
36
|
+
collection.new.class
|
37
37
|
else
|
38
38
|
false
|
39
39
|
end
|
@@ -67,7 +67,9 @@ module SimpleModelView
|
|
67
67
|
**merge_html_attrs(default_label_html, label_html))
|
68
68
|
|
69
69
|
block_concat do
|
70
|
-
template.content_tag :td,
|
70
|
+
template.content_tag :td, nil, **merge_html_attrs(default_value_html, value_html) do
|
71
|
+
yield
|
72
|
+
end
|
71
73
|
end
|
72
74
|
end
|
73
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_model_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuriy Esaulov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|