smart_params 2.3.0 → 2.3.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: fefed41179430e01ed431251aa5b42a279d21d9e8789500f39c7de54092d72a9
4
- data.tar.gz: d247325e2b0b1dacdcd6f9680d6fcf8629d81bc1b7416d699efdc5141b5c0660
3
+ metadata.gz: 2378ae8b0fa20a7f05f0895eb820bf1f48c93c578f2f673ee4a0876f7b3abc6b
4
+ data.tar.gz: 5904cd2c17c7f1ae03d14f28389acdd5d9902ffbe31c6669e73ec64a10e296c1
5
5
  SHA512:
6
- metadata.gz: 384fe2938d4cf4fe73a45c69620d5d5017a5c38358fcb8bd14d617693231571e8bee7dbd19ce6091d3fa3a547199f21db781c7ed9b7633b44c0bbfc5a80a5099
7
- data.tar.gz: ae916f2a969e10be1fc7cbdfa116a1fb89c3a5b3970fdd6771297b1d7ea56222fa9c9414625bc658d6b50b27d5e10b0ced5af328524455fe5bf5e8ae7c3430cd
6
+ metadata.gz: 7e77d8dc227e0d2460282aca3f1fc15286d49032b90feca3d2107172d0115d164b694d22d8af9cd4835d469ac9341e471025f9cf9e5421ab281b8b749725dc02
7
+ data.tar.gz: 0a93159bd0d057b1d9af2218a74c7112e47b9034b7fe22e0711184bde7c1eb4463e5d74af40d924668c9efa8f0693461953478c8ed30ebea5683aa7351ce9269
@@ -39,7 +39,7 @@ module SmartParams
39
39
  if @exception.present?
40
40
  @exception.as_json(options)
41
41
  else
42
- structure.as_json(options)
42
+ structure.as_json(options) || {}
43
43
  end
44
44
  end
45
45
  alias_method :as_json, :to_hash
@@ -1,3 +1,3 @@
1
1
  module SmartParams
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler