impress/app/models/swf_asset_observer.rb

5 lines
172 B
Ruby

class SwfAssetObserver < ActionController::Caching::Sweeper
def after_save(swf_asset)
Resque.enqueue(Item::UpdateTask, swf_asset.item.id) if swf_asset.item
end
end