Modified: trunk/app/models/workflow_sweeper.rb (3478 => 3479)
--- trunk/app/models/workflow_sweeper.rb 2013-03-12 09:37:29 UTC (rev 3478)
+++ trunk/app/models/workflow_sweeper.rb 2013-03-14 12:11:13 UTC (rev 3479)
@@ -22,8 +22,8 @@
end
def after_destroy(workflow)
- expire_sidebar_assets(workflow.contribution.contributor_id) if workflow.contribution.contributor_type == 'User'
- expire_listing(workflow.contribution.contributor_id, workflow.contribution.contributor_type) if workflow.contribution.contributor_type == 'Network'
+ expire_sidebar_assets(workflow.contributor_id) if workflow.contributor_type == 'User'
+ expire_listing(workflow.contributor_id, workflow.contributor_type) if workflow.contributor_type == 'Network'
expire_listing(workflow.id, 'Workflow')
expire_home_cache
end