reactive-record 0.7.13 → 0.7.14
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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2018a59b979681b71ceb6af018e1acac2a79f92b
|
|
4
|
+
data.tar.gz: 22f1155c538b61a0ea36a1fb594c9570ddbb7882
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3da93c95969beaee6501c52670b339b47b221049c8e85a505136ee1a2f9cb2649d3b15da4b8f42ad5968a09538921af24b74a25d5ec243d959736761ef45adc4
|
|
7
|
+
data.tar.gz: 6fb6c6d9d1393317ec6f21ea04d904e4f590f19edceab92fa220202670d198179780ce7510f3d7acd7ab2da1653d90dd963b1839af9d8d08e1c771da8a2da33a
|
|
@@ -37,7 +37,7 @@ module ActiveRecord
|
|
|
37
37
|
def inverse_of
|
|
38
38
|
unless @options[:through] or @inverse_of
|
|
39
39
|
inverse_association = klass.reflect_on_all_associations.detect do | association |
|
|
40
|
-
association.association_foreign_key == @association_foreign_key and association.klass.base_class == @owner_class.base_class
|
|
40
|
+
association.association_foreign_key == @association_foreign_key and association.klass.base_class == @owner_class.base_class and association.attribute != attribute
|
|
41
41
|
end
|
|
42
42
|
raise "Association #{@owner_class}.#{attribute} (foreign_key: #{@association_foreign_key}) has no inverse in #{@klass_name}" unless inverse_association
|
|
43
43
|
@inverse_of = inverse_association.attribute
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reactive-record
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mitch VanDuyn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|