lib/isomorfeus/data/handler/generic.rb in isomorfeus-data-1.0.0.zeta17 vs lib/isomorfeus/data/handler/generic.rb in isomorfeus-data-1.0.0.zeta18
- old
+ new
@@ -39,10 +39,10 @@
response_agent.error = { error: "Isomorfeus::Data::Handler::Generic: #{e.message}\n#{e.backtrace.join("\n")}" }
end
def process_create(response_agent, type_class, type_class_name)
# 'Isomorfeus::Data::Handler::Generic', self.name, :create, data_hash
- data = response_agent.request[type_class_name]['save']
+ data = response_agent.request[type_class_name]['create']
instance_data = data['instance']
included_items_data = data.key?('included_items') ? data['included_items'] : nil
if Isomorfeus.current_user.authorized?(type_class, :create, data)
instance = type_class.instance_from_transport(instance_data, included_items_data)
created_type = instance.create