lib/doggy/model/screen.rb in doggy-0.2.0 vs lib/doggy/model/screen.rb in doggy-0.2.2
- old
+ new
@@ -1,8 +1,8 @@
module Doggy
class Screen
def self.upload_all
- objects = all_local_items.find_all { |(type, id), object| type == 'screen' }
+ objects = Doggy.all_local_items.find_all { |(type, id), object| type == 'screen' }
puts "Uploading #{objects.size} screens"
upload(objects.map { |(type, id), object| id })
rescue => e
puts "Exception: #{e.message}"
end