active_record-nested_attributes-destroy_if 0.3.1 → 0.3.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8830f83928b48c360c8a57c038d0ad1ae294f98f7a7fa32e0112e5dc323b09f
|
|
4
|
+
data.tar.gz: 92fa1c5e48277904fa1ce27050f9e6356b29d039f8c7224ad48e0d9df44d8c03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79c110a0d200a6eab521dbe11413490ebb2350f78161933aec0c72cb4365fa87a0658eb0ba229a689d01612ee0d69d9fcc357280a39898c89038787634d566f4
|
|
7
|
+
data.tar.gz: 88c518a97c16b3edf02316147880189b8b4fea5e6532907923c0c887272ae1b6531661b7babf1306a62e7242c09dc92b091bb7fa0a10d1126f0f59f5c7f8ac70
|
|
@@ -11,7 +11,7 @@ module ActiveRecord
|
|
|
11
11
|
options = { allow_destroy: false, update_only: false }
|
|
12
12
|
options.update(attr_names.extract_options!)
|
|
13
13
|
options.assert_valid_keys(:allow_destroy, :reject_if, :destroy_if, :limit, :update_only)
|
|
14
|
-
options[:reject_if] = REJECT_ALL_BLANK_PROC if options[:reject_if] == :all_blank
|
|
14
|
+
options[:reject_if] = ActiveRecord::NestedAttributes::ClassMethods::REJECT_ALL_BLANK_PROC if options[:reject_if] == :all_blank
|
|
15
15
|
|
|
16
16
|
attr_names.each do |association_name|
|
|
17
17
|
if reflection = _reflect_on_association(association_name)
|