caprese 0.3.8.2 → 0.3.8.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/caprese/controller/concerns/persistence.rb +1 -1
- data/lib/caprese/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8b27506d0cd33d57f03042bd5bd0c7be987730
|
4
|
+
data.tar.gz: b3708630cabe7011f3de68c17a54a5f128f4dc11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54992da065f6bbd7c7e5e6bdcb14886bcd8b9525a787e7ec4bc45f51925f321341d5e302536bbfc75a7b3c7e30715a9f197c4c49e703b175d5a630e1697efd0
|
7
|
+
data.tar.gz: 8a2549e77243b43fa82e941977bc6c22f90cdf0af50b10e4af12caf724b4487d1290510f5c39184c64ab9229108f545f83c9c48f42fb9985f1aa4ba179683b30
|
data/CHANGELOG.md
CHANGED
@@ -327,7 +327,7 @@ module Caprese
|
|
327
327
|
# This methods persists the collection relation(s) pushed onto the record's association target(s)
|
328
328
|
def persist_collection_relationships(record)
|
329
329
|
record.class.reflect_on_all_associations
|
330
|
-
.select { |ref| ref.collection? && record.association(ref.name).any? }
|
330
|
+
.select { |ref| ref.collection? && !ref.through_reflection? && record.association(ref.name).any? }
|
331
331
|
.map do |ref|
|
332
332
|
[
|
333
333
|
ref.has_inverse? ? ref.inverse_of.name : ref.options[:as],
|
data/lib/caprese/version.rb
CHANGED