effective_resources 2.27.1 → 2.27.2
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 +0 -3
- data/lib/effective_resources/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5b623fa5ae2361f8fe20325bb79dfcf642276bee26ced89d888f4e541a89e60
|
4
|
+
data.tar.gz: 827f4e22ef3d2be53bcd8fc4946b435aca0e6c4166845b41ebd80c9d91e013ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4856dd227eea8142cb86bb3d43a492393c915d28570e5045c38574df5e755e5075de9f37d11b09c140c5d5408bd2e25af3281c68070cca2462caecc491b3d893
|
7
|
+
data.tar.gz: edd14cf74f7a02897302911fd5116e7900d7109f84efce723d541b0bd686fa7e1a589a3c66f978a35d124054b475ab2be97fe75fe5cdd32df39470c95b1c586b
|
@@ -52,7 +52,6 @@ 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)
|
56
55
|
can(:archive, klass) { |obj| !obj.archived? }
|
57
56
|
can(:unarchive, klass) { |obj| obj.archived? }
|
58
57
|
end
|
@@ -63,8 +62,6 @@ module ActsAsArchived
|
|
63
62
|
concern :acts_as_archived do
|
64
63
|
post :archive, on: :member
|
65
64
|
post :unarchive, on: :member
|
66
|
-
post :bulk_archive, on: :collection
|
67
|
-
post :bulk_unarchive, on: :collection
|
68
65
|
end
|
69
66
|
end
|
70
67
|
end
|