stronger_parameters 2.12.0 → 2.12.1

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: eb8d8fbb1ffc6da37f90b976befa11fc1bd1b6efc95c66ac60cb05258531edd8
4
- data.tar.gz: 336da945ec7950b2ca422527d7c00347bc9ac12ce45aa4197a2f8daf15645a3d
3
+ metadata.gz: 49ff0e22a205c3fa4f63f7eb67d4b03d99712581737de01a07a6a7f7b5170a8c
4
+ data.tar.gz: c0754ea977e118cad81cbccb13b437e133718c4bc10a5267395021865eca2fc4
5
5
  SHA512:
6
- metadata.gz: 2f14ec3db2cf2b83ff60152057909d236a921ab83d5dd6bf2d7a6d32d95dec905c2502b3ca1055094d7c254a62702a0f4cd94bf7b7b40268658a8fb52a80a740
7
- data.tar.gz: 3b83496ec4aed8fe614c7e06dc4e9b8babb5ed96c86462ca28c58a8fc80a1e6bd492119e78b6efa6827c9c5e0f5372c5fc9db022ce160ba869806926788e3458
6
+ metadata.gz: a35e1e69c80a3dcf8ac80fa9fd954a2c41bc6fe86d1025c4156e41904c5a2b1302d048d3c92a01b5dbd2110b72e21aa1c2a58082ed3e0818aaf03c52dddc200f
7
+ data.tar.gz: 4f7418f01c05f3d777d09d32bec2423446395932b949e8e11b01f6dd0f0d058da16b2bda08fbad84588b0d6214f823aae3ed9420710b84bf6025ab15ec8316f5
@@ -148,7 +148,7 @@ module StrongerParameters
148
148
  result = nil
149
149
 
150
150
  if value.nil? && self.class.allow_nil_for_everything
151
- params[key] = nil
151
+ params[key] = nil if key?(key)
152
152
  next
153
153
  end
154
154
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module StrongerParameters
3
- VERSION = '2.12.0'
3
+ VERSION = '2.12.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stronger_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler