effective_resources 2.27.0 → 2.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/acts_as_archived.rb +3 -0
- data/lib/effective_resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d52909384e6a9d45fbcf495a80d787bb591dea8c747c3367b9914b1c5531cd5
|
4
|
+
data.tar.gz: 26cfa6478ebd8926c57d36b16f85b73e8e5670ba95140b23a773b96d1e137f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f41a19c3ddb79fe0d96f832c27c44da160a4a62abe8ff52a3a053f69d2757445815190542963d5a6c6213bd6309e23b49741eac777a5e38d1a5e760be496773
|
7
|
+
data.tar.gz: 11f4096cc86ea9b4067927ea604da57770b7a3468a0cd7550248930c3b4cb1add7b59a081091b71b43b9f3b6bbe764dae58ff54abc24276883e1f019266aaa45
|
@@ -52,6 +52,7 @@ module ActsAsArchived
|
|
52
52
|
def acts_as_archived(klass)
|
53
53
|
raise "klass does not implement acts_as_archived" unless klass.respond_to?(:acts_as_archived?)
|
54
54
|
|
55
|
+
can([:bulk_archive, :bulk_unarchive], klass)
|
55
56
|
can(:archive, klass) { |obj| !obj.archived? }
|
56
57
|
can(:unarchive, klass) { |obj| obj.archived? }
|
57
58
|
end
|
@@ -62,6 +63,8 @@ module ActsAsArchived
|
|
62
63
|
concern :acts_as_archived do
|
63
64
|
post :archive, on: :member
|
64
65
|
post :unarchive, on: :member
|
66
|
+
post :bulk_archive, on: :collection
|
67
|
+
post :bulk_unarchive, on: :collection
|
65
68
|
end
|
66
69
|
end
|
67
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.27.
|
4
|
+
version: 2.27.1
|
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: 2025-01-
|
11
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|