myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2671] trunk/app/models/client_application.rb: To


From: noreply
Subject: [myexperiment-hackers] [2671] trunk/app/models/client_application.rb: Tokens should be deleted when a client_application is deleted.
Date: Fri, 12 Aug 2011 13:09:31 -0400 (EDT)

Revision
2671
Author
dtm
Date
2011-08-12 13:09:31 -0400 (Fri, 12 Aug 2011)

Log Message

Tokens should be deleted when a client_application is deleted.

Modified Paths

Diff

Modified: trunk/app/models/client_application.rb (2670 => 2671)


--- trunk/app/models/client_application.rb	2011-08-12 16:47:32 UTC (rev 2670)
+++ trunk/app/models/client_application.rb	2011-08-12 17:09:31 UTC (rev 2671)
@@ -1,7 +1,7 @@
 require 'oauth'
 class ClientApplication < ActiveRecord::Base
   belongs_to :user
-  has_many :tokens,:class_name=>"OauthToken"
+  has_many :tokens,:class_name=>"OauthToken", :dependent => :destroy
   has_many :permissions,
            :class_name => "KeyPermission",
            :order => "key_permissions.for",

reply via email to

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