effective_datatables 3.4.7 → 3.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/lib/effective_datatables/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea612785cbdfbc0f2c43e4eebff0b59e2c9cee16
|
4
|
+
data.tar.gz: c036efb3cd28bb6562a3840cb49f53952e1bee6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8cedc334ad98daeff7ba4758d746379f87e05c4330ba8b19ba49b533a77df214c8252e01cc7a61020c2d0b93fbbf13a795ed5fdac10052fe729022bd270ca4c
|
7
|
+
data.tar.gz: 6046a329e04cb59c6aefba7a7de03c94c905c8e79c06a4be2960e8710d928be36a4bbbd3de5cbe05f2af8455c594162e75703c8529f346ab5a94b058448c2d86
|
data/README.md
CHANGED
@@ -234,13 +234,15 @@ class PostsDatatable < Effective::Datatable
|
|
234
234
|
aggregate :total
|
235
235
|
|
236
236
|
# Uses effective_resources gem to discover the resource path and authorization actions
|
237
|
-
# Puts
|
237
|
+
# Puts links to show/edit/destroy actions, if authorized to those actions.
|
238
238
|
# Use the actions_col block to add additional actions
|
239
|
-
|
240
|
-
|
241
|
-
|
239
|
+
|
240
|
+
actions_col do |post|
|
241
|
+
render_resource_actions(resource, post, edit: false, partial: :glyphicons) do
|
242
|
+
glyphicon_to('print', print_post_path(post), title: 'Print')
|
242
243
|
end
|
243
244
|
end
|
245
|
+
|
244
246
|
end
|
245
247
|
|
246
248
|
end
|
@@ -541,6 +543,16 @@ actions_col show: false do |post|
|
|
541
543
|
end
|
542
544
|
```
|
543
545
|
|
546
|
+
or
|
547
|
+
|
548
|
+
```ruby
|
549
|
+
actions_col do |post|
|
550
|
+
render_resource_actions(resource, post, edit: false, partial: :glyphicons) do
|
551
|
+
glyphicon_to('print', print_post_path(post), title: 'Print')
|
552
|
+
end
|
553
|
+
end
|
554
|
+
```
|
555
|
+
|
544
556
|
The `glyphicon_to` helper is part of the [effective_resources](https://github.com/code-and-effect/effective_resources) gem, which is a dependency of this gem.
|
545
557
|
|
546
558
|
### length
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_datatables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.7.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: sass
|
56
|
+
name: sass
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|