lib/koine/attributes/attributes_factory.rb in koine-attributes-1.0.0 vs lib/koine/attributes/attributes_factory.rb in koine-attributes-1.1.0

- old
+ new

@@ -10,9 +10,10 @@ Attributes.new(target_object, adapters: @adapters, options: @options) end def add_attribute(name, adapter, &block) adapter = coerce_adapter(adapter) + adapter.attribute_name = name yield(adapter) if block @adapters[name.to_sym] = adapter.freeze end def coerce_adapter(adapter)