Skip to content

Commit

Permalink
Destroy the activities and attachments if the channel is destroyed
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 5, 2012
1 parent 96f7d77 commit 360f6c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/channel.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Channel < ActiveRecord::Base
has_many :activities
has_many :attachments
has_many :activities, :dependent => :destroy
has_many :attachments, :dependent => :destroy

class << self
def user_connect(user)
Expand Down

0 comments on commit 360f6c3

Please sign in to comment.