husky 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/husky/data_source.rb +1 -1
- data/lib/husky/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: a6fef1730b1863ac7aab7931b0ec3726f9e6b4a5
|
4
|
+
data.tar.gz: 0bdc028622391edd72dc091e56f11015ea25c7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcaf796fab39b50b23e531b2f2557cc75bb608c4ccc462c371c414b005624715d5361edbc1360816a1907239f9e7a48fbe390ff41c25bc80d2640062900dfb29
|
7
|
+
data.tar.gz: 01106404bab685110f5aa5d83694eece1b6ed7c3fb0ea7de097affb939393202489a9774bf4187ecc2741cebdba7246d8efda500fae9a7cb431ca3aa9cffc7e7
|
data/lib/husky/data_source.rb
CHANGED
@@ -10,7 +10,7 @@ module Husky
|
|
10
10
|
define_method association do
|
11
11
|
singular_association = association.to_s[0..-2].to_sym
|
12
12
|
klass_id = "#{self.class.name.split('::')[1].downcase}_id".to_sym
|
13
|
-
|
13
|
+
Husky::Repo::Registry.for(singular_association).all.select { |k,v| v.send(klass_id) == self.id }
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
data/lib/husky/version.rb
CHANGED