effective_datatables 3.3.4 → 3.3.5
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 -0
- data/app/controllers/effective/datatables_controller.rb +0 -1
- data/lib/effective_datatables/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d7792aa079e82cd58a5ee658a5a8454d3ac1301
|
4
|
+
data.tar.gz: da718d66a6ca3389ece9b34391922dadae5b935f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b45cb2de1ee4a1b6c1ed15d1e048c612a70ec736b229bfa54f631ffa7960d00108b2dd84cadf48a336a9d2d07a09532ad81e7d1c62d556d38efaeb062971d6d3
|
7
|
+
data.tar.gz: ee93bad3e2c85ba5b873e9fee967518dc2425cabe4d204d632cf661a9c8dcd9ef22589b050ea0ca5f42c5871cc9fddac4d48a884eb61ae990e69487eae7cc97a
|
data/README.md
CHANGED
@@ -739,6 +739,22 @@ def bulk_approve
|
|
739
739
|
end
|
740
740
|
```
|
741
741
|
|
742
|
+
or if using [effective_resources](https://github.com/code-and-effect/effective_resources):
|
743
|
+
|
744
|
+
```ruby
|
745
|
+
include Effective::CrudController
|
746
|
+
|
747
|
+
collection_action :bulk_approve
|
748
|
+
```
|
749
|
+
|
750
|
+
and in your model
|
751
|
+
|
752
|
+
```ruby
|
753
|
+
def approve!
|
754
|
+
update_attributes!(status: :approved)
|
755
|
+
end
|
756
|
+
```
|
757
|
+
|
742
758
|
### bulk_action_divider
|
743
759
|
|
744
760
|
Inserts a menu divider `<li class='divider' role='separator'></li>`
|
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.3.
|
4
|
+
version: 3.3.5
|
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: 2017-10-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|