@@ -31,7 +31,7 class Issue < ActiveRecord::Base | |||
|
31 | 31 | belongs_to :priority, :class_name => 'IssuePriority' |
|
32 | 32 | belongs_to :category, :class_name => 'IssueCategory' |
|
33 | 33 | |
|
34 | has_many :journals, :as => :journalized, :dependent => :destroy | |
|
34 | has_many :journals, :as => :journalized, :dependent => :destroy, :inverse_of => :journalized | |
|
35 | 35 | has_many :visible_journals, |
|
36 | 36 | lambda {where(["(#{Journal.table_name}.private_notes = ? OR (#{Project.allowed_to_condition(User.current, :view_private_notes)}))", false])}, |
|
37 | 37 | :class_name => 'Journal', |
General Comments 0
You need to be logged in to leave comments.
Login now