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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e45ab951f28699bab843a354e3bb6c4bb9431f94
4
- data.tar.gz: e7f3172b081865b97597fca413d179429696a85e
3
+ metadata.gz: a932c0080a04342cc7d744d1bf4d8d57db79a3b2
4
+ data.tar.gz: 7e66a4560393b343c5ff6efdbd4cada2356bd1ab
5
5
  SHA512:
6
- metadata.gz: b728645299b95231da74341a9a5e27444e8097a09687ef81d111e5a0d58cb97a81bbaa555013358bdb2f902f3909e23add1a4e09c701391754c5012502c9a442
7
- data.tar.gz: abfb15539b72daa1bdd5334e6c6007d602cdc66dd1d83f90f017bd5dbaec80546629ad77e12c12493f86c482358ccb89680741f5968dc4854cda9819612e30b2
6
+ metadata.gz: ebb438dbe4cf698dd92d95fae21ff9cc2bb81ff770548a67c175d32477a314931f6f417616c7da49b80cd6759ff9149efe805d2e0650a95e2ffc3c4c020d16b8
7
+ data.tar.gz: d2d55670b24717e6db577de9565089806630580a67448eb4a8e82e0d1286feef8abafb2c003995ab7aec649d67c050c4103d364183d19d655764482bfc9a2714
@@ -50,12 +50,16 @@ module Husky
50
50
  set.map { |item| yield item }
51
51
  end
52
52
 
53
- def new(attributes)
54
- receiver.new({"#{caller.class.to_s.split('::').last.downcase}_id".to_sym => caller.id })
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({"#{caller.class.to_s.split('::').last.downcase}_id".to_sym => caller.id })
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
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: husky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser