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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a4540891ea565b13ae981a76c6f66cab9db27dc
4
- data.tar.gz: 2f9bdac71e4ebe1633a4155e2e80f6f1c7108d16
3
+ metadata.gz: 0d7792aa079e82cd58a5ee658a5a8454d3ac1301
4
+ data.tar.gz: da718d66a6ca3389ece9b34391922dadae5b935f
5
5
  SHA512:
6
- metadata.gz: f4ac68ad4047dc1fb880a5f605d446fa64919cb5a0613f6531b3899028cb216b245c2f9de60b692099550792fdd9cdb9d443f50b8b9425a6bbef4233b6605677
7
- data.tar.gz: a5eaf8683a46485d5dbd3d80967fa21ed32280dad8223284cf1cefbdf3633ae129bd71d2619567fb233b01c68c960a5c002228a746647f7c7f893d85458c2e17
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>`
@@ -15,7 +15,6 @@ module Effective
15
15
  (EffectiveDatatables.authorized?(self, :index, @datatable.try(:collection_class)) rescue false)
16
16
 
17
17
  render json: error_json(e)
18
- raise e
19
18
  end
20
19
  end
21
20
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '3.3.4'.freeze
2
+ VERSION = '3.3.5'.freeze
3
3
  end
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
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-26 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails