app/strategies/meeting_reservation_updater.rb
# Destroys any MeetingEventReservation or MeetingRelayReservation indexed by the
# paramters; the actual model class must be specified as +klass+..
# This method updates also the internal SQL diff log file.
#
# == Returns:
#
# +true+ in case of deletion, raises an Exception in case of error.
#
Destroys any MeetingEventReservation or MeetingRelayReservation indexed by the
paramters; the actual model class must be specified as +klass+
This method updates also the internal SQL diff log file.



+true+ in case of deletion, raises an Exception in case of error.
Destroys any MeetingEventReservation or MeetingRelayReservation indexed by the paramters ; the actual model class must be specified as + klass + This method updates also the internal SQL diff log file . + true + in case of deletion raises an Exception in case of error .
def delete_existing_detail_rows!( klass, meeting_id, badge_id, event_id )
    mrs = event_id.present? ? klass.where( badge_id: badge_id, meeting_event_id: event_id ) :
                              klass.where( meeting_id: meeting_id, badge_id: badge_id )
    if mrs.count > 0
      mrs.each do |mres|
        sql_diff_text_log << to_sql_delete( mres, false, "\r\n" ) if mres.destroy!
      end
    end
  end
def delete_existing_detail_rows! ( klass , meeting_id , badge_id , event_id ) mrs = event_id . present? ? klass . where ( badge_id : badge_id , meeting_event_id : event_id ) : klass . where ( meeting_id : meeting_id , badge_id : badge_id ) if mrs . count > 0 mrs . each do | mres | sql_diff_text_log << to_sql_delete ( mres , false , "\r\n" ) if mres . destroy! end end end
Destroys any MeetingEventReservation or MeetingRelayReservation indexed by the
paramters; the actual model class must be specified as +klass+..
Destroys any MeetingEventReservation or MeetingRelayReservation indexed by the paramters ; the actual model class must be specified as + klass + ..
# DEBUG #    puts "before DELETE (klass: #{ klass }, meeting_id: #{ meeting_id }, badge_id: #{ badge_id }, event_id: #{ event_id })" # DEBUG #      puts "Some rows for deletion FOUND." # Store Db-diff text for DELETE
klass
<not_specific>
meeting_id
<not_specific>
badge_id
<not_specific>
event_id
<not_specific>