arin 0.1.4 → 0.1.5

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: 262fd640382d4faae63d8548a3cc0caecd920a3d
4
- data.tar.gz: a6fdc63adb0bd46302e87e39eb38bbff8f37ee83
3
+ metadata.gz: 16cd377ea0a357999bbd84868dbb708761c866e2
4
+ data.tar.gz: f2575e4af1f2da0e40e8e53b1f5a050fe291f118
5
5
  SHA512:
6
- metadata.gz: dbe9e8550bb72cf7e552a826750b710c42b4bae839eed1e11c225e041fe680c728ea27c19bc9ade711acfaa36563f354c7cf5eae90faee5b758f263b1b185414
7
- data.tar.gz: d69f2f7fc7ad348fc7a5afdad4d82381537fd9e2f623a3c31343387d9c9b4195d2c782a36997b575471fa6c3aaee1f2e95a2e06c816da5439dcf0ef1790f4c30
6
+ metadata.gz: aecbb76ba7bc0e6499fdcb59c2d604f2fff94ef74bf5c34942a03379c637bf84f70a5d93621f2f0d10a0c4199e2410b6ab135cbc3ffa9ef51e5407b2348b95a0
7
+ data.tar.gz: 4f822a6002179fe83fbb295011b5e892fb09c6d306bcc414d6fdc01dbf454dac3655c923b35343356d1cabf147bf60b65460a9667df3241948d45e9dda828d5e
@@ -104,9 +104,9 @@ module Arin
104
104
  FROM #{klass.table_name} AS t
105
105
  LEFT JOIN #{assoc_class.table_name} AS r
106
106
  ON t.#{assoc.foreign_key} = r.#{assoc_class.primary_key}
107
- AND t.#{assoc.foreign_type} = "#{assoc_class}"
108
107
  WHERE r.#{assoc_class.primary_key} IS NULL
109
108
  AND t.#{assoc.foreign_key} IS NOT NULL
109
+ AND t.#{assoc.foreign_type} = "#{assoc_class}"
110
110
  SQL
111
111
  end
112
112
 
@@ -1,3 +1,3 @@
1
1
  module Arin
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - fmnoise@gmail.com