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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5466d11f7ad4f90be5252b60019e945726fa0193d4d7ff3bff14a9e73068b6c3
4
- data.tar.gz: 03be5ffc2a4a0558931405ac70becba7b2a8b02be5b2397ece1f91a25750f20d
3
+ metadata.gz: b00f39b8dba54220029e9d5024f65aeac3f846ca239531a03f943d30610d4807
4
+ data.tar.gz: 168329b9d4ed58efa0e50f245f1aea0b2e12cf08a5162479353ceefab73993a2
5
5
  SHA512:
6
- metadata.gz: 6fa7ec7e21665287dcde9d357a9b4e1ab56dace9e5dc854756d9b7ca977db8a3fcf57b9684d6a322e3f598e6109724657706fe88de70137ab2f952b34016f438
7
- data.tar.gz: db0cdac2c103579511a065eec3223f67cc3021f553bb5fcb8791326bfaa63db7ef1ecea9c8d4074401c779d9485be8d01fe312ee2a77b09e311e497aace5f0ba
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
- link_to formatted_value, link.call(record)
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
@@ -1,4 +1,4 @@
1
1
  module RecordViewHelper
2
2
  # version
3
- VERSION = "1.3.0".freeze
3
+ VERSION = "1.3.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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka