lib/active_groonga/persistence.rb in activegroonga-2.1.2 vs lib/active_groonga/persistence.rb in activegroonga-2.1.3
- old
+ new
@@ -93,10 +93,10 @@
attributes = {}
@attributes.each do |key, value|
next if value.nil?
if value.is_a?(Base)
value.save if value.new_record?
- value = value.id
+ value = value.record_id
end
attributes[key] = value
end
if table.support_key?
record = table.add(key, attributes)