aduki 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/aduki.rb CHANGED
@@ -42,7 +42,8 @@ module Aduki
42
42
  @@types = { }
43
43
 
44
44
  def aduki types
45
- @@types[self] = types
45
+ @@types[self] ||= { }
46
+ @@types[self] = @@types[self].merge types
46
47
  end
47
48
 
48
49
  def aduki_type_for_attribute_name name
data/lib/aduki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Aduki
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -37,6 +37,8 @@ class Model
37
37
 
38
38
  attr_accessor :name, :email, :item, :thing, :gadget
39
39
  attr_accessor :machines, :contraptions, :countries
40
- aduki :gadget => Gadget, :machines => Machine, :contraptions => Contraption
40
+ aduki :gadget => Gadget
41
+ aduki :machines => Machine
42
+ aduki :contraptions => Contraption
41
43
  end
42
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aduki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: