Commit 8125d3ffda00fb86082883e0d64eac032b69a052
1 parent
c0e78638
Exists in
master
and in
29 other branches
[postgres-tests] Fixing comments on action_tracker_notification
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/action_tracker_notification.rb
@@ -3,7 +3,7 @@ class ActionTrackerNotification < ActiveRecord::Base | @@ -3,7 +3,7 @@ class ActionTrackerNotification < ActiveRecord::Base | ||
3 | belongs_to :profile | 3 | belongs_to :profile |
4 | belongs_to :action_tracker, :class_name => 'ActionTracker::Record', :foreign_key => 'action_tracker_id' | 4 | belongs_to :action_tracker, :class_name => 'ActionTracker::Record', :foreign_key => 'action_tracker_id' |
5 | 5 | ||
6 | - has_many :comments, :through => :action_tracker, :class_name => 'Comment', :foreign_key => 'source_id' | 6 | + delegate :comments, :to => :action_tracker, :allow_nil => true |
7 | 7 | ||
8 | validates_presence_of :profile_id, :action_tracker_id | 8 | validates_presence_of :profile_id, :action_tracker_id |
9 | validates_uniqueness_of :action_tracker_id, :scope => :profile_id | 9 | validates_uniqueness_of :action_tracker_id, :scope => :profile_id |