lib/representable/hash_methods.rb in representable-1.5.3 vs lib/representable/hash_methods.rb in representable-1.6.0

- old
+ new

@@ -6,16 +6,16 @@ attrs << Definition.new(*definition_opts) if attrs.size == 0 attrs end def create_representation_with(doc, options, format) - bin = representable_bindings_for(format, options).first + bin = representable_mapper(format, options).bindings.first hash = filter_keys_for(represented, options) bin.write(doc, hash) end def update_properties_from(doc, options, format) - bin = representable_bindings_for(format, options).first + bin = representable_mapper(format, options).bindings.first hash = filter_keys_for(doc, options) value = bin.deserialize_from(hash) represented.replace(value) end