effective_datatables 4.7.3 → 4.7.4

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: 4680722774df8a353220ea8430222cda0502291a23ac39c5ffb70b3f36c524bb
4
- data.tar.gz: a68b88bb5b0d0bf60c175be105dc4483c3962fb40e0796eadf6c02d598789b60
3
+ metadata.gz: a60c15f1f3a43328d70962644780fb14cae4d00ad3477ae66d343927458ab659
4
+ data.tar.gz: bcbce544e403042f50884b150c60eff9f259e10aaf303bc6c8397f066fadbfb1
5
5
  SHA512:
6
- metadata.gz: 0a9e0d639eb8d8407d6b7113714d90e408f9b41b32fb8841695cc61532559a5ddff0ccbaaa0032bba21bf70fe59bc774ca34e3917a1165b042bddf3f1aab7a76
7
- data.tar.gz: e30c2c0bd9a14faef5569aa2c996d6159c89ff973868351b7e1182efdcf04eb1fee0f9537c4531a5894410e11b9ad8d3c4ca579bfd30161afffdb0716d198de6
6
+ metadata.gz: cd33fcd4b81119097378e889a07db9e487bca7dcf602591b8754dc10b42607e957854e8890c51461899b88d50a02f009fb158315d2aa0cbeeff5a5f5cbfe5484
7
+ data.tar.gz: e1e7394cf58aa0c2f9c09aaa8f5dd6f5031736cc7e921ea061af394686e93f8646298e516c522760d99856e18663723519aa6948b03422f114c282042ebc46fb
@@ -1,10 +1,11 @@
1
1
  - Array(local_assigns[:resource_name] ? resource.public_send(resource_name) : resource).each do |resource|
2
- - resource_to_s = (local_assigns[:resource_to_s] ? resource.public_send(resource_to_s) : resource.to_s)
2
+ - resource_to_s = ((local_assigns[:resource_to_s] && resource) ? resource.public_send(resource_to_s) : resource.to_s)
3
3
 
4
- .col-resource_item
5
- - if edit_action && EffectiveDatatables.authorized?(controller, :edit, resource) && (path = effective_resource.action_path(:edit, resource)).present?
6
- = link_to resource_to_s, path, title: resource_to_s
7
- - elsif show_action && EffectiveDatatables.authorized?(controller, :show, resource) && (path = effective_resource.action_path(:show, resource)).present?
8
- = link_to resource_to_s, path, title: resource_to_s
9
- - else
10
- = resource_to_s.html_safe
4
+ - if resource_to_s.present?
5
+ .col-resource_item
6
+ - if edit_action && EffectiveDatatables.authorized?(controller, :edit, resource) && (path = effective_resource.action_path(:edit, resource)).present?
7
+ = link_to resource_to_s, path, title: resource_to_s
8
+ - elsif show_action && EffectiveDatatables.authorized?(controller, :show, resource) && (path = effective_resource.action_path(:show, resource)).present?
9
+ = link_to resource_to_s, path, title: resource_to_s
10
+ - else
11
+ = resource_to_s.html_safe
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.7.3'.freeze
2
+ VERSION = '4.7.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.3
4
+ version: 4.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect