husky 0.2.6 → 0.2.7
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 +8 -4
- 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: a932c0080a04342cc7d744d1bf4d8d57db79a3b2
|
4
|
+
data.tar.gz: 7e66a4560393b343c5ff6efdbd4cada2356bd1ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebb438dbe4cf698dd92d95fae21ff9cc2bb81ff770548a67c175d32477a314931f6f417616c7da49b80cd6759ff9149efe805d2e0650a95e2ffc3c4c020d16b8
|
7
|
+
data.tar.gz: d2d55670b24717e6db577de9565089806630580a67448eb4a8e82e0d1286feef8abafb2c003995ab7aec649d67c050c4103d364183d19d655764482bfc9a2714
|
data/lib/husky/data_source.rb
CHANGED
@@ -50,12 +50,16 @@ module Husky
|
|
50
50
|
set.map { |item| yield item }
|
51
51
|
end
|
52
52
|
|
53
|
-
def new(attributes)
|
54
|
-
|
55
|
-
end
|
53
|
+
# def new(attributes)
|
54
|
+
# receiver.new({ receiver_id => caller.id })
|
55
|
+
# end
|
56
56
|
|
57
57
|
def create(attributes)
|
58
|
-
receiver.create({
|
58
|
+
receiver.create({ receiver_id => caller.id })
|
59
|
+
end
|
60
|
+
|
61
|
+
def receiver_id
|
62
|
+
"#{caller.class.to_s.split('::').last.downcase}_id".to_sym
|
59
63
|
end
|
60
64
|
|
61
65
|
end
|
data/lib/husky/version.rb
CHANGED