effective_roles 2.3.1 → 2.3.2

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: 663715e96a52fd2472bcc606272284e1292c6b33b95914bfb9f8349cd367fef4
4
- data.tar.gz: 9fc246e383b8b416cf755043f4f88bc5a764bfc7964a5c4736bef09b385516e3
3
+ metadata.gz: 9bfa0c4c2878a1c88ee466c2cc321ad1ad8016adf44b521d710b81f11bda17d1
4
+ data.tar.gz: bb370586b9e8ff441156be67dcc9b296c7a445602100a8d571b49db406ee9300
5
5
  SHA512:
6
- metadata.gz: 2a07058e19d7e5b088cac749bfb2512625ea505c052559902940da20aa40a53ba47febdf64897fa5400cb883a929ac90b8d16d94a7b25ee2c0c874536a89c835
7
- data.tar.gz: c48b105bf52531ee64cad811eebab4bdb078f8559435d89bc32fa74e27a5fdf7392c108710b9f220fa1e7030750564a5a770ea30286aea264a8429edd67ea04f
6
+ metadata.gz: 85b549b0bddf0e29f1ac29eb37b49a227f49a6d8fd44396c727bc47c067e6ecb9f9297f4f5cf1f4ae274ac96b7bdd7aad6a59a8453dd2b46ca748d6f5585e44d
7
+ data.tar.gz: 45c5c8fd2a446bec85814198e8e609e67011758ddac0f2d8529ef8854f2a4b51d4a389f39f9f72ad7614c738f675b9bbc366901217bb94e50e8a98e4427e1f17
@@ -1,3 +1,3 @@
1
1
  module EffectiveRoles
2
- VERSION = '2.3.1'.freeze
2
+ VERSION = '2.3.2'.freeze
3
3
  end
@@ -102,12 +102,7 @@ module EffectiveRoles
102
102
  assignable_roles
103
103
  end.uniq
104
104
 
105
- # Check boxes
106
- multiple = resource.acts_as_role_restricted_options[:multiple] if multiple.nil?
107
- return assigned_roles if multiple
108
-
109
- # Radios
110
- (resource.roles - assigned_roles).present? ? [] : assigned_roles
105
+ assigned_roles
111
106
  end
112
107
 
113
108
  def self.assignable_roles_present?(resource)
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.3.1
4
+ version: 2.3.2
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: 2022-06-15 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails