active_admin_scoped_collection_actions 0.3.4 → 0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f3b27e6e615890eca448e5061ca11e96b249c6
|
4
|
+
data.tar.gz: c1c4f7226524058d732eb544506a6baa9c300ac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4239c88a770f0ea8ffb34ec806f738f11b80e1282d374c2e04cba3694167e3b6de6fdc3379ae21977c8dc86f57ed99506900823ddaa58a7fee8dea8123fa0cc9
|
7
|
+
data.tar.gz: 5592807cf0f632006bcb5ba176409461ab5145305dcc30dc4125216ecfe80d95a615653133722ca72c895fa68ead8561024cfd9260c24d54c5e10b9ae870e526
|
data/Gemfile
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
module ActiveAdminScopedCollectionActions
|
2
2
|
module Controller
|
3
|
+
COLLECTION_APPLIES = [
|
4
|
+
:authorization_scope,
|
5
|
+
:filtering,
|
6
|
+
:scoping,
|
7
|
+
:includes,
|
8
|
+
].freeze
|
9
|
+
|
3
10
|
def scoped_collection_records
|
4
11
|
selection = params.fetch(:collection_selection, [])
|
5
|
-
selection.any? ? batch_action_collection.where(resource_class.primary_key => selection)
|
12
|
+
selection.any? ? batch_action_collection(COLLECTION_APPLIES).where(resource_class.primary_key => selection)
|
13
|
+
: batch_action_collection(COLLECTION_APPLIES)
|
6
14
|
end
|
7
15
|
end
|
8
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_scoped_collection_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gena M.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.6.
|
94
|
+
rubygems_version: 2.6.13
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: scoped_collection actions extension for ActiveAdmin
|