app/controllers/groups_controller.rb
def delete_form
    source_group ||= Group.find(params[:source_group]) unless params[:source_group].blank?
    clients = Client.find(params[:clients]) if params.key?(:clients)
    if (clients.blank? && source_group.clients.present?) || source_group.nil?
      respond_with_notify
    else
      clients ||= []
      locals = { source_group: source_group, clients: clients }
      respond_root_path_js(:delete_group, locals)
    end
  end
# Renders a form for deleting clients
Renders a form for deleting clients
Renders a form for deleting clients
def delete_form
    source_group ||= Group.find(params[:source_group]) unless params[:source_group].blank?
    clients = Client.find(params[:clients]) if params.key?(:clients)
    if (clients.blank? && source_group.clients.present?) || source_group.nil?
      respond_with_notify
    else
      clients ||= []
      locals = { source_group: source_group, clients: clients }
      respond_root_path_js(:delete_group, locals)
    end
  end
def delete_form source_group ||= Group . find ( params [ :source_group ] ) unless params [ :source_group ] . blank? clients = Client . find ( params [ :clients ] ) if params . key? ( :clients ) if ( clients . blank? && source_group . clients . present? ) || source_group . nil? respond_with_notify else clients ||= [ ] locals = { source_group : source_group , clients : clients } respond_root_path_js ( :delete_group , locals ) end end
Renders a form for deleting clients
Renders a form for deleting clients