Commit 2841bca869c43fd44bac24b529ffb9ca0da98a28
1 parent
ac42021d
Exists in
staging
and in
42 other branches
Untracking leave scrap to self
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
app/models/scrap.rb
@@ -12,7 +12,6 @@ class Scrap < ActiveRecord::Base | @@ -12,7 +12,6 @@ class Scrap < ActiveRecord::Base | ||
12 | named_scope :not_replies, :conditions => {:scrap_id => nil} | 12 | named_scope :not_replies, :conditions => {:scrap_id => nil} |
13 | 13 | ||
14 | 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 | 14 | 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 |
15 | - track_actions :leave_scrap_to_self, :after_create, :keep_params => ['sender.name', 'content'], :if => Proc.new{|s| s.receiver == s.sender} | ||
16 | 15 | ||
17 | after_create do |scrap| | 16 | after_create do |scrap| |
18 | scrap.root.update_attribute('updated_at', DateTime.now) unless scrap.root.nil? | 17 | scrap.root.update_attribute('updated_at', DateTime.now) unless scrap.root.nil? |