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: 50274de5e97355af971444c44fc6e11c7d6cc5bf
4
- data.tar.gz: 6826664275c50d1c5c9ac06ff2e9ae624b0f8be5
3
+ metadata.gz: 2018a59b979681b71ceb6af018e1acac2a79f92b
4
+ data.tar.gz: 22f1155c538b61a0ea36a1fb594c9570ddbb7882
5
5
  SHA512:
6
- metadata.gz: 24ca2f3773a7c226c3132f1aaff9d868b3bf91705b202b14681f2f157da5a66654542151419067f1c97c0a8943a8adbad43b9ecfdb73d678dbfe90198e49c181
7
- data.tar.gz: 59a9ca009c337aa4ec5e51252a317b3857593d5359759df24bafec1c1d92347497c593a440d0c6b6aa58370021c60a977d0b63357a05dcb9d0641baa51e79aa1
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
@@ -1,3 +1,3 @@
1
1
  module ReactiveRecord
2
- VERSION = "0.7.13"
2
+ VERSION = "0.7.14"
3
3
  end
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.13
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-08 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails