lib/active_scaffold/actions/update.rb~ in active_scaffold-3.1.6 vs lib/active_scaffold/actions/update.rb~ in active_scaffold-3.1.7
- old
+ new
@@ -80,10 +80,9 @@
begin
active_scaffold_config.model.transaction do
@record = update_record_from_params(@record, active_scaffold_config.update.columns, params[:record]) unless options[:no_record_param_update]
before_update_save(@record)
self.successful = [@record.valid?, @record.associated_valid?].all? {|v| v == true} # this syntax avoids a short-circuit
- debugger
if successful?
@record.save! and @record.save_associated!
after_update_save(@record)
else
# some associations such as habtm are saved before saved is called on parent object