accepts_nested_ids 0.1.2 → 0.2.0

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: 74e07b9897436d630f866a0ff01ece3f4cc5b2e8
4
- data.tar.gz: 330695c6af8fbf175c94a36d267dbffd16aa597a
3
+ metadata.gz: 5f82c620ec955edbc3d2dd873fc898e2daf90281
4
+ data.tar.gz: 79322c3d6f555b29abad9a293c8ef22e0b31c755
5
5
  SHA512:
6
- metadata.gz: a6b41c816cb8b7103f05dbb3ab94909d986f9c132f67286e463b3c398a6fb991c3406ab54bddd287e5adbda89c7acf0fde52b3d8cc6574505194959467e17dc9
7
- data.tar.gz: 2bb7068450d3243c9f88a5980445288aa6d29eab24d76970e06186c2de391aeacaf87bb6d8a694e6a53022f299ee7535d90e679ca27b4f4b8eaed77c3c7d7f24
6
+ metadata.gz: 672c6bf363173008940b03a2dc2e070705a39d218b19bcc61672d65f025cacac53960f2c33b67ff989220a8cdc30b02595f5db433e553c6c66648ba0c18c743f
7
+ data.tar.gz: 6c1310b58f8e7a06f683bb700b0d5e46ab384ee8729f08cbacd4b116aa9a5063867c231eb424097cf0c9dc555431e6c2ba90d940f82c54c5eba7b9014ca1d2ea
@@ -0,0 +1,7 @@
1
+ ## 0.2.0 (2016-02-05)
2
+
3
+ Fix for associations defined on a subclass not being saved.
4
+
5
+ ## 0.1.2 (2015-08-12)
6
+
7
+ Fix for STI.
@@ -24,7 +24,8 @@ module AcceptsNestedIds
24
24
  # end
25
25
  #
26
26
  def save_nested_id_associations
27
- self.class.base_class.nested_id_associations.each do |nested_id_association|
27
+ aggregated_id_associations = self.class.nested_id_associations | self.class.base_class.nested_id_associations
28
+ aggregated_id_associations.each do |nested_id_association|
28
29
  if instance_variable_get("@#{nested_id_association.ids_attr}")
29
30
  association_class = nested_id_association.class_name.constantize
30
31
  ids = send(nested_id_association.ids_attr)
@@ -1,3 +1,3 @@
1
1
  module AcceptsNestedIds
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
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.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuval Kordov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-08-12 00:00:00.000000000 Z
12
+ date: 2016-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -106,6 +106,7 @@ files:
106
106
  - ".gitignore"
107
107
  - ".rspec"
108
108
  - ".travis.yml"
109
+ - CHANGELOG.md
109
110
  - Gemfile
110
111
  - LICENSE.txt
111
112
  - README.md