husky 0.2.2 → 0.2.3

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: 4c491643591b168e495b526f429ff995078efa7b
4
- data.tar.gz: bfade69f6bca3d428bd0a074207ef22f3f2c9d82
3
+ metadata.gz: 23a3d0b3653cecef87461dd8fad8a87685e027da
4
+ data.tar.gz: c4a0541707dafef17578b5226b08c03bf2e269e9
5
5
  SHA512:
6
- metadata.gz: 2f6aa679d228c3ea43e25c7caf3dbf4021250709a5a98f9032e3460badb304e3b558f5221f3b4eed7fd950754f816a69f53542804573d86a8d087accf87c3c53
7
- data.tar.gz: 0fcc34afc23181c6a380a57b5ed3c38c6d9fe0b6b5174c971630b4f11ff95c81d5dbf4c5955e5a3bc5d9d9f8efd4e0316e614b3bd387482d59721c2fe57c1b7a
6
+ metadata.gz: 26b5ddb242f49a9f1bdee398a76d6ae654cb732b3920b04219919847e6bfd5ff632ce15f30f38a72fc58c2ac5b6c59be7cb2dc63f7fb1d29e148d1b479a53b03
7
+ data.tar.gz: e5a35c352bd991d3c1b59b7be7d4b9ac65d7c18cb74c92ccc6536389273d54b7fa632ff84a84e4ab1b3dd2073955ec7f58b973ff7d4996224c4772f525be68e1
@@ -50,6 +50,10 @@ module Husky
50
50
  set.map { |item| yield item }
51
51
  end
52
52
 
53
+ def new(attributes)
54
+ receiver.new({ "#{caller.class.downcase}_id".to_sym => caller.id })
55
+ end
56
+
53
57
  def create(attributes)
54
58
  receiver.create({ "#{caller.class.downcase}_id".to_sym => caller.id })
55
59
  end
@@ -1,3 +1,3 @@
1
1
  module Husky
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser