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 +4 -4
- data/lib/arin/check.rb +1 -1
- data/lib/arin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16cd377ea0a357999bbd84868dbb708761c866e2
|
4
|
+
data.tar.gz: f2575e4af1f2da0e40e8e53b1f5a050fe291f118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aecbb76ba7bc0e6499fdcb59c2d604f2fff94ef74bf5c34942a03379c637bf84f70a5d93621f2f0d10a0c4199e2410b6ab135cbc3ffa9ef51e5407b2348b95a0
|
7
|
+
data.tar.gz: 4f822a6002179fe83fbb295011b5e892fb09c6d306bcc414d6fdc01dbf454dac3655c923b35343356d1cabf147bf60b65460a9667df3241948d45e9dda828d5e
|
data/lib/arin/check.rb
CHANGED
@@ -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
|
|
data/lib/arin/version.rb
CHANGED