# File lib/big_record/model.rb, line 438 def clone_in_persistence_format validate_attributes_schema data = {} # normalized attributes without the id @attributes.keys.each do |key| next if !self.class.store_primary_key? and (key == self.class.primary_key) value = read_attribute(key) if value.kind_of?(Embedded) data[key] = value.clone_in_persistence_format elsif value.is_a?(Array) data[key] = value.collect do |e| if e.kind_of?(Embedded) e.clone_in_persistence_format else e end end else data[key] = value end end data end