# File lib/sdb/active_sdb.rb, line 838 def save(options={}) pre_save2 atts_to_save = @attributes.dup #puts 'atts_to_save=' + atts_to_save.inspect #options = params.first.is_a?(Hash) ? params.pop : {} if options[:except] options[:except].each do |e| atts_to_save.delete(e).inspect end end if options[:dirty] # Only used in simple_record right now # only save if the attribute is dirty dirty_atts = options[:dirty_atts] atts_to_save.delete_if { |key, value| !dirty_atts.has_key?(key) } end #puts 'atts_to_save2=' + atts_to_save.inspect connection.put_attributes(domain, id, atts_to_save, :replace) apres_save2 @attributes end