simple_params 1.3.0 → 1.3.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzM2MTE0ZTVmMmFkMDNlOGQ5YjZiMDQ5MDc2NGIxNDIzOGU0YTI0ZA==
4
+ ZDExOTEwZWI3ZDNmMGM0NGRhYjI3MGU1MTFmMzUyM2VhYzViM2I1OA==
5
5
  data.tar.gz: !binary |-
6
- OTFiZGUxYTM0MzI4MWQyZGE3OWZiMDFkNzk3YzNmNmM5YTQ2OWYwZA==
6
+ ZDAxMWQxYThjNTU4M2Y4NzdkZjE0MjI4OWM1ZTE5MDQyZjVlYjliMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjgyZWJhMDE2OTcxMjc1ZTA0NzM0NDYwYzU3MDI0NTZmNTdhYmZiYjU5ZDc3
10
- ODQxNDQ0NTkzMTQ0MTIyMjAxZjZjYzEzOWE3NDJjYWIyZGZkYzcyY2JhYzIw
11
- MTA3MDBiNjJjMGQyMWM3ZjQyNzViODczOTJjYjdiN2M5NjUwMDU=
9
+ ZTAyN2Y4YmMwNzI4YmUyOGNiZWM3NDBmYjdjYTI3Y2IzODRlNTk5ZWY5MTEy
10
+ Y2ZjNzhkNzllMTlhYmM3YWQ5ZGI0Mjg5NmU5NTRiYWFhMGZmYzAxNzg0NGQx
11
+ YTNkOGI2YWJmNmEzMjI4Mjk5YzRjNjVmZjJhYzhkZDY0Njk4ODY=
12
12
  data.tar.gz: !binary |-
13
- ZDEwNzA0MDVjMzVkNjY4NzNmNjFjZDVhZTliNzFiNWYzZGZmNGFjZDJiMDNl
14
- Mzk5ZGRmM2Q0MDk4ZDUyY2M4MDZlODBhYWQzNmRiOWJkNTg0Njk1M2Y3MWE2
15
- ODM2NmRmODhjYWE2YjAwYjRlNjA0NzJiYTNhODE4MmRjNjM3YTQ=
13
+ MGEwZGJjMGVjYjIyNmUyZjUxMTc5NDA0MDMwNTY4MWM4Y2ZkYjA5MmZiMTY5
14
+ YjdmMDJiYmRhYmM1YjA2NDI0ODhmZTEyMDk3YmFmODgwMTQyNGYzYmZlYWNh
15
+ MTBkNGJjOWY1MWNmZGZlMGFkMjBhY2E5OGVhZjRmODRhMzZiYmI=
@@ -51,7 +51,7 @@ module SimpleParams
51
51
  def set_accessors(params={})
52
52
  if class_has_ids?
53
53
  @id = params.keys.first
54
- params = params.values.first
54
+ params = params.values.first || {}
55
55
  end
56
56
 
57
57
  super(params)
@@ -1,3 +1,3 @@
1
1
  module SimpleParams
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz