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: 988d1289edb2626cf081fa4b897d955ffe4659ca
4
- data.tar.gz: 2f76463868e068f1c84f3d3c80f17a60c17fbe6d
3
+ metadata.gz: 48f3b27e6e615890eca448e5061ca11e96b249c6
4
+ data.tar.gz: c1c4f7226524058d732eb544506a6baa9c300ac6
5
5
  SHA512:
6
- metadata.gz: c22ec1be3beffdc90fdb74d86030479209f58e593dbe03970467c897d5ae62cf16c32de309078159e691212619ed4fa237140bf353703418e56bcfa088636da5
7
- data.tar.gz: 2995cac15edc575015fbd99583d60cabe615075e4abceac3c9aed564a6e9c3753d5067a030f7f331974e09a4e2d7db98334dbe2634460beceada2c3706198f9e
6
+ metadata.gz: 4239c88a770f0ea8ffb34ec806f738f11b80e1282d374c2e04cba3694167e3b6de6fdc3379ae21977c8dc86f57ed99506900823ddaa58a7fee8dea8123fa0cc9
7
+ data.tar.gz: 5592807cf0f632006bcb5ba176409461ab5145305dcc30dc4125216ecfe80d95a615653133722ca72c895fa68ead8561024cfd9260c24d54c5e10b9ae870e526
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ group :test do
6
6
  gem 'sprockets-rails', '2.3.3'
7
7
  gem 'rails', '~> 5.1'
8
8
  gem 'rspec-rails'
9
+ gem 'draper'
9
10
  gem 'activeadmin', '1.0.0'
10
11
  gem 'sass-rails'
11
12
  gem 'sqlite3'
@@ -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) : batch_action_collection
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
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminScopedCollectionActions
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  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
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-08-19 00:00:00.000000000 Z
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.12
94
+ rubygems_version: 2.6.13
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: scoped_collection actions extension for ActiveAdmin