From 8125d3ffda00fb86082883e0d64eac032b69a052 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 29 Jul 2013 20:01:09 -0300 Subject: [PATCH] [postgres-tests] Fixing comments on action_tracker_notification --- app/models/action_tracker_notification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/action_tracker_notification.rb b/app/models/action_tracker_notification.rb index dda665c..b8ef0cc 100644 --- a/app/models/action_tracker_notification.rb +++ b/app/models/action_tracker_notification.rb @@ -3,7 +3,7 @@ class ActionTrackerNotification < ActiveRecord::Base belongs_to :profile belongs_to :action_tracker, :class_name => 'ActionTracker::Record', :foreign_key => 'action_tracker_id' - has_many :comments, :through => :action_tracker, :class_name => 'Comment', :foreign_key => 'source_id' + delegate :comments, :to => :action_tracker, :allow_nil => true validates_presence_of :profile_id, :action_tracker_id validates_uniqueness_of :action_tracker_id, :scope => :profile_id -- libgit2 0.21.2