lato_spaces 3.1.7 → 3.1.9

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: 687cd734cbf573f74fff9a5e9a34bd17fd5fa9ebe4f6e777d1008e73f75b8bfb
4
- data.tar.gz: bab0a9df36e03b6607bd9c28925e23b2500dd01533b3ef24b980dcc37ea43ed8
3
+ metadata.gz: 138e35921ac438d9b8fc8fe960bd405f306df59af2ff49fe92890178f29da04d
4
+ data.tar.gz: 854e74f7a0b3ed0de3f43396391ce980d738b29a492c2b4812ae3f2c53975eed
5
5
  SHA512:
6
- metadata.gz: ec18c04d2e1459e66d00bcf38f9de9775eae096541a199069891896ec33ed48bf1bb6106fe2d740109e43d1e3a6a8fc50bb995d9f0fb80b25da97931c9ad64ea
7
- data.tar.gz: 764ccf9ebc8c2ae7c28f44dac1d4f734852cc6f9c5d57fe3ea28612e5b01df8f0daa98bf38ade70c66279c7a8f792ba2ed3cc8f27fb82c9329995fb1e4dc8c3f
6
+ metadata.gz: 3c6143b36e197207cfb694285966b12ddc6438bee8303f85cdebba9078d103812e8b32af262ae4697bb5e166bb5871aaaaa0b654ee4785126a25d79dc2de0d61
7
+ data.tar.gz: 06e84a844a8458658cc1bced1a5a0d7843b08cbb83dcf72f08633742a678946fefb1f03eabdc47bd9c66f5c325bffc293fede034cd5c352d8d30bf93c40ebdb1
@@ -5,7 +5,7 @@ module LatoSpaces::Associable
5
5
  # Relations
6
6
  ##
7
7
 
8
- has_many :lato_spaces_associations, class_name: 'LatoSpaces::Association', as: :item, dependent: :destroy
8
+ has_many :lato_spaces_associations, class_name: 'LatoSpaces::Association', as: :item, dependent: :delete # HACK: delete instead of destroy to avoid infinite loop caused by AssociableRequired concern
9
9
  has_many :lato_spaces_groups, through: :lato_spaces_associations, class_name: 'LatoSpaces::Group'
10
10
 
11
11
  # Scopes
@@ -21,7 +21,7 @@ module LatoSpaces::AssociableRequired
21
21
 
22
22
  # listen LatoSpaces::Association destroy event to destroy item
23
23
  LatoSpaces::Association.after_destroy do |association|
24
- association.item.destroy
24
+ association.item.destroy!
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module LatoSpaces
2
- VERSION = "3.1.7"
2
+ VERSION = "3.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato_spaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.7
4
+ version: 3.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante