husky 0.2.5 → 0.2.6
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 +2 -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: e45ab951f28699bab843a354e3bb6c4bb9431f94
|
4
|
+
data.tar.gz: e7f3172b081865b97597fca413d179429696a85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b728645299b95231da74341a9a5e27444e8097a09687ef81d111e5a0d58cb97a81bbaa555013358bdb2f902f3909e23add1a4e09c701391754c5012502c9a442
|
7
|
+
data.tar.gz: abfb15539b72daa1bdd5334e6c6007d602cdc66dd1d83f90f017bd5dbaec80546629ad77e12c12493f86c482358ccb89680741f5968dc4854cda9819612e30b2
|
data/lib/husky/data_source.rb
CHANGED
@@ -51,11 +51,11 @@ module Husky
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def new(attributes)
|
54
|
-
receiver.new({"#{caller.class.split('::').last.
|
54
|
+
receiver.new({"#{caller.class.to_s.split('::').last.downcase}_id".to_sym => caller.id })
|
55
55
|
end
|
56
56
|
|
57
57
|
def create(attributes)
|
58
|
-
receiver.create({"#{caller.class.split('::').last.
|
58
|
+
receiver.create({"#{caller.class.to_s.split('::').last.downcase}_id".to_sym => caller.id })
|
59
59
|
end
|
60
60
|
|
61
61
|
end
|
data/lib/husky/version.rb
CHANGED