lib/yaks/mapper/config.rb in yaks-0.9.0 vs lib/yaks/mapper/config.rb in yaks-0.10.0
- old
+ new
@@ -1,13 +1,13 @@
module Yaks
class Mapper
class Config
- include Attributes.new(
+ include Attribs.new(
type: nil, attributes: [], links: [], associations: [], forms: []
)
def add_attributes(*attrs)
- append_to(:attributes, *attrs.map(&Attribute.method(:new)))
+ append_to(:attributes, *attrs.map(&Attribute.method(:create)))
end
end
end
end