app/services/change_manager/manager.rb in change_manager-0.1.0 vs app/services/change_manager/manager.rb in change_manager-0.1.1

- old
+ new

@@ -1,17 +1,17 @@ module ChangeManager class Manager def self.queue_change(owner, change_type, context, target) change_id = Change.new_change(owner, change_type, context, target) # Resque.enqueue(MakeChange, change_id) - Resque.enqueue_in(30.seconds, MakeChange, change_id) + Resque.enqueue_in(30.seconds, ChangeManager::BeginChange, change_id) end - def self.notify(change_id) + def self.process_change(change_id) unless Change.find(change_id).cancelled? - change = Change.find(change_id) - verified_changes = process_changes(change) - notify_users(verified_changes) unless verified_changes.empty? + change = Change.find change_id + verified_changes = process_changes change + notify verified_changes unless verified_changes.empty? end end private def self.process_changes(change)