From 2841bca869c43fd44bac24b529ffb9ca0da98a28 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 5 Jan 2012 16:24:35 -0200 Subject: [PATCH] Untracking leave scrap to self --- app/models/scrap.rb | 1 - 1 file changed, 0 insertions(+), 1 deletion(-) diff --git a/app/models/scrap.rb b/app/models/scrap.rb index 50f497e..d84dcd6 100644 --- a/app/models/scrap.rb +++ b/app/models/scrap.rb @@ -12,7 +12,6 @@ class Scrap < ActiveRecord::Base named_scope :not_replies, :conditions => {:scrap_id => nil} track_actions :leave_scrap, :after_create, :keep_params => ['sender.name', 'content', 'receiver.name', 'receiver.url'], :if => Proc.new{|s| s.receiver != s.sender}, :custom_target => :action_tracker_target - track_actions :leave_scrap_to_self, :after_create, :keep_params => ['sender.name', 'content'], :if => Proc.new{|s| s.receiver == s.sender} after_create do |scrap| scrap.root.update_attribute('updated_at', DateTime.now) unless scrap.root.nil? -- libgit2 0.21.2