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 +4 -4
- data/lib/record_view_helper/table.rb +1 -1
- data/lib/record_view_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8ae6ff9c0971eb3265945de1721dc718796cdef90df26280973246b0b4a2e5
|
4
|
+
data.tar.gz: 6e35a6fceaabceb0244859199a4dd2134303cdf348dabe1c4565047df3e7aa8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
),
|