eco-helpers 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ab57a6eb9ae88d667354760cf6b2253c31dd2f0eefdac131319481005d6ce6e
4
- data.tar.gz: ac353abcc15fbaa889657aaad28b7ddb81db825575e2388d1f4b7873b98fdeb0
3
+ metadata.gz: f068ac5a87fcddd53b2ade559622c0f4f9b603f2f5398822b067bb59aec9b348
4
+ data.tar.gz: 39834d2736e117269c1b1e0fb10f6f851d306643ea4ec65203ee62006f5cb4de
5
5
  SHA512:
6
- metadata.gz: 9ef95889230b88cd10529ec3b92aa2704fae334ea33d1e183319184f63996c772de2060f3eff1fd4d9746432d67decce6a960d2dee992e179ad41bce2ced0624
7
- data.tar.gz: c0bfdfb7d970a74855ba60fb85867ea191fca3580321234a816582712a5b578f9e279b555677ce7ca7353b0e4ed11d31fe1fd7ae7a71a97637f12cf2760c1704
6
+ metadata.gz: 344a308dc23d4b462db4307aa3321c4dce1ef63bf322977a542dc6f2c46ce7a98320d51a0ab16ae765be5506565a93e4a85579684f985143deb1f6647e885ca4
7
+ data.tar.gz: ba70a2f335c345569a7f7295a501015cdb035fdfff90f01a6dd72fb63e9a348095f38adf40b5659fbcd3d181bf89abe62ec75620c505d420e95a2db451453fba
@@ -15,7 +15,7 @@ module Eco
15
15
  if person = people.find(entry, strict: strict_search)
16
16
  if person.account
17
17
  ini_pg_ids = person.account&.policy_group_ids || []
18
- add = entry.internal_entry["policy_group_ids"].split("|").compact
18
+ add = entry.internal_entry["policy_group_ids"].to_s.split("|").compact
19
19
  person.account.policy_group_ids = (ini_pg_ids | add).uniq
20
20
 
21
21
  person.account.permissions_custom = session.new_preset(person) unless options.dig(:exclude, :abilities)
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura