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: 3fe07953361ca1aeb9f5ee0410173b83d2b9c16cf8c339b083befeac4f7ee337
4
- data.tar.gz: f1ca40045fb2d9645e6e511c42d4b6a02bb62d91b84d6617cf44f8af49538937
3
+ metadata.gz: d922d6619f8fb27e02eacc57b7b6e8b443de2bbb91ccf873c80df796f971a79f
4
+ data.tar.gz: 1b0fc673f43fdeb12ba2fff645749e7f16e6c75b68b907b667b9e7fca795ffcc
5
5
  SHA512:
6
- metadata.gz: dd6d5d49ea8d0a1c89d5222ccbd9798dd5db43879aff884f067dcb61ec3092016d5fd46c44179c262ecb572dc00177a35e3b235fa98543fd4ab8d658827cde89
7
- data.tar.gz: ea08a12bf899834e170841f635d1cffa7930cae7b11cdc71e611dbeee6a117c2d7dbf021df58245ea91b5b89accacfdf850f66e59066f725ef7d8c82cb4736d2
6
+ metadata.gz: a7ac64f0364d9f030cfabf64e5503c0396de5f4071657da007ab36c9c75d999e18832936171166fb42b8c8657321e9938fdc2792adce6275163d505925d1386e
7
+ data.tar.gz: 0b14978e38341d55be102fdbef3c6c32a41b78e768d04b89de47e05ac259e291715afd684fa8e9f97a026520d4964cadb808a43a77c31b6bbe2b63f6941debbc
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ## 0.1.1
2
+ * Bug fix.
3
+
1
4
  ## 0.1.0
2
5
  * First step.
@@ -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, yield, **merge_html_attrs(default_value_html, value_html)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleModelView
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  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.0
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-03 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview