lib/cassandra_object/base.rb in gotime-cassandra_object-2.8.0 vs lib/cassandra_object/base.rb in gotime-cassandra_object-2.8.1
- old
+ new
@@ -54,10 +54,10 @@
@destroyed = false
@attributes = {}
self.attributes = attributes
attribute_definitions.each do |attr, attribute_definition|
unless attribute_exists?(attr)
- write_attribute(attr, attribute_definition.instantiate(self, nil))
+ self.attributes[attr] = self.class.instantiate_attribute(self, attr, nil)
end
end
@schema_version = self.class.current_schema_version
end
\ No newline at end of file