From eda80a8dc76fa33e0a2e3d173a8fa14a44e6bed0 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 5 Apr 2014 23:52:24 -0500 Subject: [PATCH] double whoops; the actual problem was that i hadnt restarted the background workers :P --- app/models/swf_asset_observer.rb | 5 ----- config/application.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 app/models/swf_asset_observer.rb diff --git a/app/models/swf_asset_observer.rb b/app/models/swf_asset_observer.rb deleted file mode 100644 index 392f3b91..00000000 --- a/app/models/swf_asset_observer.rb +++ /dev/null @@ -1,5 +0,0 @@ -class SwfAssetObserver < ActionController::Caching::Sweeper - def after_save(swf_asset) - Resque.enqueue(Item::UpdateTask, swf_asset.item.id) if swf_asset.item - end -end diff --git a/config/application.rb b/config/application.rb index 34593a2b..28bd9b45 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,7 +22,7 @@ module OpenneoImpressItems # Activate observers that should always be running config.active_record.observers = [:closet_hanger_observer, :closet_list_observer, :contribution_observer, :item_observer, - :pet_type_observer, :swf_asset_observer, :user_sweeper] + :pet_type_observer, :user_sweeper] # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.