record_view_helper 1.3.0 → 1.3.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/util.rb +2 -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: b00f39b8dba54220029e9d5024f65aeac3f846ca239531a03f943d30610d4807
|
4
|
+
data.tar.gz: 168329b9d4ed58efa0e50f245f1aea0b2e12cf08a5162479353ceefab73993a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32c5bd9b1c71ed90fdc99f372df8248ed1c9bbc17e43e5a1a08e8a2d4eb6c3b459d65385fc3187cfb5ba9df52a44acfaf19bef297e95390a1bd6f1132cc92eb9
|
7
|
+
data.tar.gz: d1066603da5fa5a9a57293f47c7c04f4be27bcc1b426ba6c726d61efcd2b07a07ddca1b440efde804cc4311dfdd2a6547eea806d6ae6152e3e33dc6d32f5db5d
|
@@ -36,7 +36,8 @@ module RecordViewHelper
|
|
36
36
|
path_method, param_columns = link.first
|
37
37
|
link_record_value(record, formatted_value, path_method, param_columns)
|
38
38
|
when Proc
|
39
|
-
|
39
|
+
link_uri = link.call(record)
|
40
|
+
link_uri ? link_to(formatted_value, link_uri) : formatted_value
|
40
41
|
else
|
41
42
|
formatted_value
|
42
43
|
end
|