myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3367] trunk/app/controllers/application_controll


From: noreply
Subject: [myexperiment-hackers] [3367] trunk/app/controllers/application_controller.rb: Changed delete to destroy for safety!
Date: Tue, 29 Jan 2013 10:24:30 +0000 (UTC)

Revision
3367
Author
fbacall
Date
2013-01-29 10:24:29 +0000 (Tue, 29 Jan 2013)

Log Message

Changed delete to destroy for safety!

Modified Paths

Diff

Modified: trunk/app/controllers/application_controller.rb (3366 => 3367)


--- trunk/app/controllers/application_controller.rb	2013-01-29 09:29:56 UTC (rev 3366)
+++ trunk/app/controllers/application_controller.rb	2013-01-29 10:24:29 UTC (rev 3367)
@@ -189,7 +189,7 @@
     # If a group policy was selected, use that, and delete the old custom one (if there was one).
     if params[:policy_type] == "group"
       if contributable.contribution.policy && !contributable.contribution.policy.group_policy?
-        contributable.contribution.policy.delete
+        contributable.contribution.policy.destroy
       end
       contributable.contribution.policy_id = params[:group_policy]
       contributable.contribution.save

reply via email to

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