effective_roles 2.8.0 → 2.8.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: 592048e729650a2988a1b4cd6a88982f74798715385cac9d17f80fd5c975b197
4
- data.tar.gz: f0dbc94accae4749fa9fea221cf7f0ffc7013463ddd3571e68c64789bed554b5
3
+ metadata.gz: 8c4f356993f7be2c1a6e89929a4fe5f2a20299479635f8f4f35b8f77f5739b75
4
+ data.tar.gz: 6b99770ddd3141c5eb7329f8f8474b8b81f202540f0059be99ae20f0dd6dba09
5
5
  SHA512:
6
- metadata.gz: 38b3e7b0aa680d4e47ea1d2411bb3a7c77a5c5155e6f6702b5ee14b14cc48b51bd0497e26c780a5f9fa4aec88cc0cab12da8bc5936cc5def8d44bde29a8f7693
7
- data.tar.gz: 608cd0e64ecc94c77daba4c559f4b22fa6eb18b8515a33695f87da051dadd72f16b91c1bf6b76a05b457fe2cfb1c1e6e965e1f2d0c76077fc70f7297b75742b4
6
+ metadata.gz: da6be1b61232cdfb73e8febac700dfb6e7b05a5043d2fcf0a00058d7584072468cc016294f236df0f3198dfbe4f073ecdf74ae4a202c70d3fd6cefb475bed3d7
7
+ data.tar.gz: 4b25753fd844cdb353bc3166b83d5ceca6d359c071fd9434d07a90bc3d346ba9eda9a3b3d66b36af173280b4a6c37c6fd33d705d5839affe30322e71f35bc733
@@ -165,4 +165,8 @@ module ActsAsRoleRestricted
165
165
  roles.present?
166
166
  end
167
167
 
168
+ def roles_was
169
+ EffectiveRoles.roles_for(roles_mask_was)
170
+ end
171
+
168
172
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveRoles
2
- VERSION = '2.8.0'.freeze
2
+ VERSION = '2.8.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_roles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.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: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails