Commit 8125d3ffda00fb86082883e0d64eac032b69a052

Authored by Rodrigo Souto
1 parent c0e78638

[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 3 belongs_to :profile
4 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 8 validates_presence_of :profile_id, :action_tracker_id
9 9 validates_uniqueness_of :action_tracker_id, :scope => :profile_id
... ...