lib/doggy/model/dash.rb in doggy-0.2.0 vs lib/doggy/model/dash.rb in doggy-0.2.2

- old
+ new

@@ -1,8 +1,8 @@ module Doggy class Dash def self.upload_all - objects = all_local_items.find_all { |(type, id), object| type == 'dash' } + objects = Doggy.all_local_items.find_all { |(type, id), object| type == 'dash' } puts "Uploading #{objects.size} dashboards" upload(objects.map { |(type, id), object| id }) rescue => e puts "Exception: #{e.message}" end