husky 0.2.4 → 0.2.5

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: 28dc650794ba34881a2ca19686a669f20ca37871
4
- data.tar.gz: ae7b9d2815d621437ea192219c55a56d28107b2f
3
+ metadata.gz: d652db9e54915a01155dd3a95f0452986babd4f2
4
+ data.tar.gz: aae94dc524cdf12b09bdf47b88e5303678761ca4
5
5
  SHA512:
6
- metadata.gz: 377b21584fa63366091f77b5203915b4cec934c16883e610ca34cdd9037a7b85853ade9f0700987f3168f9130cb38aed3982524a7ae5f68b5c3a9c4f0c8af5a2
7
- data.tar.gz: 4b3b3e346624e312a5920458e25dfcc47c827fc7db02a6be6225e2210f45d3cd59f4434c3f00ff33bc46afa88fdd4c1dea4662100d9f20b81890bd27deba4db4
6
+ metadata.gz: 115b460d206b6f17716497cf0105ae25882e7cdad210952eed724ab27f6dcbe90987b54b78f03667abd3c3a293f28b2c389e6dbfeb6c4cf4525777b587444f66
7
+ data.tar.gz: 18baafce7df2b1eb1946581aaaa1bd3c7dda95e85e5e77a0e308ca47a9e5973e443c613c3455bf06bb6bbcd60b9e8f6353b0b9f9692957e4d609e802d13b8de1
@@ -51,11 +51,11 @@ module Husky
51
51
  end
52
52
 
53
53
  def new(attributes)
54
- receiver.new({"#{caller.to_s.class.downcase}_id".to_sym => caller.id })
54
+ receiver.new({"#{caller.class.split('::').last.to_s.downcase}_id".to_sym => caller.id })
55
55
  end
56
56
 
57
57
  def create(attributes)
58
- receiver.create({"#{caller.to_s.class.downcase}_id".to_sym => caller.id })
58
+ receiver.create({"#{caller.class.split('::').last.to_s.downcase}_id".to_sym => caller.id })
59
59
  end
60
60
 
61
61
  end
data/lib/husky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser