app/controllers/users_controller.rb
def clear_patron_data
    if User.where(admin: [nil, false]).destroy_all
      flash[:success] = t('users.clear_patron_data_success')
    end
    redirect_to users_url
  end
# Delete all non-admin patrons
Delete all non-admin patrons
Delete all non - admin patrons
def clear_patron_data
    if User.where(admin: [nil, false]).destroy_all
      flash[:success] = t('users.clear_patron_data_success')
    end
    redirect_to users_url
  end
def clear_patron_data if User . where ( admin : [ nil , false ] ) . destroy_all flash [ :success ] = t ( 'users.clear_patron_data_success' ) end redirect_to users_url end
Delete all non-admin patrons
Delete all non - admin patrons