lib/transcriber/resource/builder/keys.rb in transcriber-0.0.3 vs lib/transcriber/resource/builder/keys.rb in transcriber-0.0.4

- old
+ new

@@ -2,9 +2,10 @@ class Resource module Builder module Keys def key(key) fail "you can't define a key with name '#{key.name}'" if not_allowed?(key) + key.model = self attr_accessor key.name self.keys << key self.id_key = key if key.options[:id] end