accepts_nested_ids 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 5f82c620ec955edbc3d2dd873fc898e2daf90281
4
- data.tar.gz: 79322c3d6f555b29abad9a293c8ef22e0b31c755
3
+ metadata.gz: 3ccdb84f08ab6ac2f245d765cb50bb01692f381f
4
+ data.tar.gz: 6220958cd838ef5de33797afd950af047d704d79
5
5
  SHA512:
6
- metadata.gz: 672c6bf363173008940b03a2dc2e070705a39d218b19bcc61672d65f025cacac53960f2c33b67ff989220a8cdc30b02595f5db433e553c6c66648ba0c18c743f
7
- data.tar.gz: 6c1310b58f8e7a06f683bb700b0d5e46ab384ee8729f08cbacd4b116aa9a5063867c231eb424097cf0c9dc555431e6c2ba90d940f82c54c5eba7b9014ca1d2ea
6
+ metadata.gz: b913aa012aeba4a4f25c517f7d6302c9d72a0a88e300acb93c47a1b3c02d3ce5a70bf37f27f7c9f81fbb2e027b55e8a88b1557a9f8d88af084ad7ae9c87e7f7c
7
+ data.tar.gz: 70510ded00f346d2c571cdc6e53fee7d8e3363ee419af9031d934a0a5433ae66d2ab57b4f2c0f4b3061fd91468fb6d5222b47289b305e967021978594330db88
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (2016-02-05)
2
+
3
+ Ensure empty array of nested associations is loaded, to handle situations where a sub class does not define its own associations and the intersection between base and sub class associations was failing.
4
+
1
5
  ## 0.2.0 (2016-02-05)
2
6
 
3
7
  Fix for associations defined on a subclass not being saved.
@@ -84,7 +84,7 @@ module AcceptsNestedIds
84
84
  end
85
85
 
86
86
  def nested_id_associations
87
- @_nested_id_associations
87
+ @_nested_id_associations || []
88
88
  end
89
89
 
90
90
  private
@@ -1,3 +1,3 @@
1
1
  module AcceptsNestedIds
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accepts_nested_ids
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuval Kordov