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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a60c15f1f3a43328d70962644780fb14cae4d00ad3477ae66d343927458ab659
|
4
|
+
data.tar.gz: bcbce544e403042f50884b150c60eff9f259e10aaf303bc6c8397f066fadbfb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
.
|
5
|
-
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|