diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-21 08:27:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-21 08:27:46 +0000 |
commit | 6f661d40b39dbd38104507d364539b13ea354f85 (patch) | |
tree | f8665fb2dd4b939857472402ed1ac6e88e99feb5 /app/models | |
parent | 4730ef894fa9794e95e47919c9baa75fd5a264f8 (diff) | |
download | redmine-6f661d40b39dbd38104507d364539b13ea354f85.tar.gz redmine-6f661d40b39dbd38104507d364539b13ea354f85.zip |
Set :inverse_of option on journals association.
git-svn-id: http://svn.redmine.org/redmine/trunk@13923 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 3815921d9..aca31291d 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -31,7 +31,7 @@ class Issue < ActiveRecord::Base belongs_to :priority, :class_name => 'IssuePriority' belongs_to :category, :class_name => 'IssueCategory' - has_many :journals, :as => :journalized, :dependent => :destroy + has_many :journals, :as => :journalized, :dependent => :destroy, :inverse_of => :journalized has_many :visible_journals, lambda {where(["(#{Journal.table_name}.private_notes = ? OR (#{Project.allowed_to_condition(User.current, :view_private_notes)}))", false])}, :class_name => 'Journal', |