record_view_helper 1.2.0 → 1.2.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: 4420c07571bd973a842e61399f37f2bb7952adb94e8d2357ebb4efae7c414bbe
4
- data.tar.gz: 0caed0c7ee861e30ee80458ae99c9f67c0c61f70187f4ef1e1e9d69ba6bdcb6b
3
+ metadata.gz: ed8ae6ff9c0971eb3265945de1721dc718796cdef90df26280973246b0b4a2e5
4
+ data.tar.gz: 6e35a6fceaabceb0244859199a4dd2134303cdf348dabe1c4565047df3e7aa8d
5
5
  SHA512:
6
- metadata.gz: ab18c5d000ca4f3db2eea7be853d681a3fbcdfd8889233615f5fb5c42eb6a20ada4933374971cb1936ea4e780545a23317bb6a6d587c5469fd030818ecc6a040
7
- data.tar.gz: ca8de4b08691838a187562233290a1b1d0621b202af3ab51c6f517389b1dda06a3250e4bc25bccdba3e57f857f57ac1e48daffb5f275949964bd0eeb25b5a716
6
+ metadata.gz: 90a81d57bb121df94728f1ed7de8db3c2733f2bd8608130bb2c0b89d1020cd8c5bf1c9f894d0eb1dfacff8e4f08e3cde750838f91026d648d954f8d7a848bd92
7
+ data.tar.gz: 549b949f24c5363e58aa92fa2deb6af47867bf148288291b34e44f84bb3eda627f09719b5a11b138ba8cefa41ad946fd1f0341d7ded522491587e9515aa045af
@@ -71,7 +71,7 @@ module RecordViewHelper
71
71
  "tr",
72
72
  safe_join(
73
73
  setting.columns.map do |column|
74
- content_tag("th", record_view_helper_t(records.first.class, column), setting.header_attrs[column])
74
+ content_tag("th", record_view_helper_t(records.try(:klass) || records.first.class, column), setting.header_attrs[column])
75
75
  end,
76
76
  ),
77
77
  ),
@@ -1,4 +1,4 @@
1
1
  module RecordViewHelper
2
2
  # version
3
- VERSION = "1.2.0".freeze
3
+ VERSION = "1.2.1".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: record_view_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka