diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-17 15:18:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-17 15:18:50 +0000 |
commit | 10cf1ccc1abe1c6ffdf21259b54292f9068b569c (patch) | |
tree | d43c2fd622b2126f72672d177f482e4934106e3d /app/models/journal.rb | |
parent | 22b42dc90a86b16904224bf638054fffd062b53f (diff) | |
download | redmine-10cf1ccc1abe1c6ffdf21259b54292f9068b569c.tar.gz redmine-10cf1ccc1abe1c6ffdf21259b54292f9068b569c.zip |
added rss/atom feeds at project levels for:
* news
* new issues reported
* details of issue changes
issue cutom queries can be used as feeds
git-svn-id: http://redmine.rubyforge.org/svn/trunk@339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 18a6ec083..f70a69863 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -17,6 +17,10 @@ class Journal < ActiveRecord::Base belongs_to :journalized, :polymorphic => true + # added as a quick fix to allow eager loading of the polymorphic association + # since always associated to an issue, for now + belongs_to :issue, :foreign_key => :journalized_id + belongs_to :user has_many :details, :class_name => "JournalDetail", :dependent => :delete_all end |