husky 0.2.2 → 0.2.3
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 +4 -0
- 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: 23a3d0b3653cecef87461dd8fad8a87685e027da
|
4
|
+
data.tar.gz: c4a0541707dafef17578b5226b08c03bf2e269e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26b5ddb242f49a9f1bdee398a76d6ae654cb732b3920b04219919847e6bfd5ff632ce15f30f38a72fc58c2ac5b6c59be7cb2dc63f7fb1d29e148d1b479a53b03
|
7
|
+
data.tar.gz: e5a35c352bd991d3c1b59b7be7d4b9ac65d7c18cb74c92ccc6536389273d54b7fa632ff84a84e4ab1b3dd2073955ec7f58b973ff7d4996224c4772f525be68e1
|
data/lib/husky/data_source.rb
CHANGED
@@ -50,6 +50,10 @@ module Husky
|
|
50
50
|
set.map { |item| yield item }
|
51
51
|
end
|
52
52
|
|
53
|
+
def new(attributes)
|
54
|
+
receiver.new({ "#{caller.class.downcase}_id".to_sym => caller.id })
|
55
|
+
end
|
56
|
+
|
53
57
|
def create(attributes)
|
54
58
|
receiver.create({ "#{caller.class.downcase}_id".to_sym => caller.id })
|
55
59
|
end
|
data/lib/husky/version.rb
CHANGED