module Engine2::ActionInsertSupport
Public Instance Methods
allocate_record(handler, json_rec)
click to toggle source
Calls superclass method
# File lib/engine2/action.rb, line 949 def allocate_record handler, json_rec record = super(handler, json_rec) record.instance_variable_set(:"@new", true) model = assets[:model] model.primary_keys.each{|k|record.values.delete k} unless model.natural_key handler.permit !record.has_primary_key? unless model.natural_key record end