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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a8d7a783095b227ca8e11253cb186f4b06c2fb7ec8b42511251d925bfddf7e0
4
- data.tar.gz: 53038ae639dc8fe0b9aa0764232b0ba4af4b94afe8f6f686c516bbfbbf153d82
3
+ metadata.gz: 1d52909384e6a9d45fbcf495a80d787bb591dea8c747c3367b9914b1c5531cd5
4
+ data.tar.gz: 26cfa6478ebd8926c57d36b16f85b73e8e5670ba95140b23a773b96d1e137f13
5
5
  SHA512:
6
- metadata.gz: ff8d6145dc5cbbfb86170194d60e295a1c31face8480be9b3cd893afb17bd96b785bf2f886457e5082fb7c37f952d5f2842b551cafc98f493e3f4209b6adc1a9
7
- data.tar.gz: f2e4c9e106f3a16490807df977089f1a40f51eb3f9abc6d9dc09dc85c863d818113035769417923384b43ea5c278685dc81de7108c3fe1d912c9862b8853cd91
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.27.0'.freeze
2
+ VERSION = '2.27.1'.freeze
3
3
  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.0
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-13 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails