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: 50b904d94bc808cae78828f9bb7342c9c4a96e1e21c93be7ee654265861738a2
4
- data.tar.gz: 603cd946586e2b2e85e11d0435f89d559bd44fac977277c35e8c48a8dad348d0
3
+ metadata.gz: d8830f83928b48c360c8a57c038d0ad1ae294f98f7a7fa32e0112e5dc323b09f
4
+ data.tar.gz: 92fa1c5e48277904fa1ce27050f9e6356b29d039f8c7224ad48e0d9df44d8c03
5
5
  SHA512:
6
- metadata.gz: 2f9e8ab2c4f6ed9c7751bbda6ac3707bb2d9e17fc5edd43a351a2ac253c1b56995331f3848572973683a09441ea28dff760b17f133942ce9b112bcced0cf7386
7
- data.tar.gz: 3eb9ef1dae8e13b777e7b81fd1283d17a0e28a9111671eec0e57bcd418d2929414e85a81ce153e01c568d92361165cded572f767c0e29993b8ccc16f4d18c4cb
6
+ metadata.gz: 79c110a0d200a6eab521dbe11413490ebb2350f78161933aec0c72cb4365fa87a0658eb0ba229a689d01612ee0d69d9fcc357280a39898c89038787634d566f4
7
+ data.tar.gz: 88c518a97c16b3edf02316147880189b8b4fea5e6532907923c0c887272ae1b6531661b7babf1306a62e7242c09dc92b091bb7fa0a10d1126f0f59f5c7f8ac70
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord
2
2
  module NestedAttributesDestroyIf
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
6
6
 
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-nested_attributes-destroy_if
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel