myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3790] branches/packs/app/controllers/items_contr


From: noreply
Subject: [myexperiment-hackers] [3790] branches/packs/app/controllers/items_controller.rb: changed activity feeds to be more resilient about deleted resources
Date: Fri, 15 Nov 2013 14:56:23 +0000 (UTC)

Revision
3790
Author
dgc
Date
2013-11-15 14:56:22 +0000 (Fri, 15 Nov 2013)

Log Message

changed activity feeds to be more resilient about deleted resources

Modified Paths

Diff

Modified: branches/packs/app/controllers/items_controller.rb (3789 => 3790)


--- branches/packs/app/controllers/items_controller.rb	2013-11-14 14:37:27 UTC (rev 3789)
+++ branches/packs/app/controllers/items_controller.rb	2013-11-15 14:56:22 UTC (rev 3790)
@@ -94,6 +94,8 @@
     @item.context.destroy if @item.context
 
     # Delete the resource
+    Activity.create_activities(:subject => current_user, :action ="" 'destroy', :object => @item)
+
     @item.destroy
 
     redirect_to @context

reply via email to

[Prev in Thread] Current Thread [Next in Thread]