Created
January 24, 2013 23:43
-
-
Save dladowitz/4629757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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