lib/active_remote/persistence.rb in active_remote-3.1.1 vs lib/active_remote/persistence.rb in active_remote-3.1.2.pre
- old
+ new
@@ -236,10 +236,9 @@
#
def remote_create
run_callbacks :create do
# Use the getter here so we get the type casting.
new_attributes = attributes
- new_attributes.delete(primary_key.to_s)
response = rpc.execute(:create, new_attributes)
assign_attributes(response.to_hash)
add_errors(response.errors) if response.respond_to?(:errors)