husky 0.2.8 → 0.2.9
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 +6 -2
- 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: 46eb99761e40638ea1a66aaa5c8855cb9be5e2c5
|
4
|
+
data.tar.gz: 2b98014f5f03fb6b6f8ab5d18ec7fa05e6d99be2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4909d78f4ed4aa27512dfba27a8a27e3c2e329f94ebe4820a3ce054a1ed7d178241389271af538460cd32dd0b1fe63dc112b6eaf715b997af0dc212fe710ee0
|
7
|
+
data.tar.gz: 5ba667f479b9a983e3eecfffa6db45fe097686aa3cdaea852f38271baf62ad529d73635a19cb97a8c789dde2ead8b332041380a88a5ee805a1dc3d6c85bef342
|
data/lib/husky/data_source.rb
CHANGED
@@ -52,11 +52,15 @@ module Husky
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def new(attributes)
|
55
|
-
|
55
|
+
attrs = attributes
|
56
|
+
attrs[caller_id] = caller.id
|
57
|
+
receiving_class.new(attrs)
|
56
58
|
end
|
57
59
|
|
58
60
|
def create(attributes)
|
59
|
-
|
61
|
+
attrs = attributes
|
62
|
+
attrs[caller_id] = caller.id
|
63
|
+
receiving_class.create(attrs)
|
60
64
|
end
|
61
65
|
|
62
66
|
def caller_id
|
data/lib/husky/version.rb
CHANGED