Skip to content

Instantly share code, notes, and snippets.

@dladowitz
Created January 24, 2013 23:43
Show Gist options
  • Save dladowitz/4629757 to your computer and use it in GitHub Desktop.
Save dladowitz/4629757 to your computer and use it in GitHub Desktop.
def check_admin_devices
count = 0
AdminDevice.limit.all.each do |admin_device|
device = Device.find(admin_device.id)
unless device.last_run_time_tester
puts "'last_run_time_tester' was false: #{admin_device.description}"
count += 1
end
end
puts "Total Admin Devices having 'last_run_time_tester' set to false: #{count}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment