##// END OF EJS Templates
fixed problems when svn path doesn't point to the root directory of the repository....
fixed problems when svn path doesn't point to the root directory of the repository. a root_url property has been added on the repository. it's automatically retrieved the first time the repository is browsed git-svn-id: http://redmine.rubyforge.org/svn/trunk@344 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r336:10cf1ccc1abe
r341:fd37f37ee4ed
Show More
journal.rb
26 lines | 1.1 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
improved issues change history...
r52 # redMine - project management software
# Copyright (C) 2006 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class Journal < ActiveRecord::Base
belongs_to :journalized, :polymorphic => true
Jean-Philippe Lang
added rss/atom feeds at project levels for:...
r336 # 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
Jean-Philippe Lang
improved issues change history...
r52 belongs_to :user
Jean-Philippe Lang
replaced deprecated ":dependent => true" statements...
r120 has_many :details, :class_name => "JournalDetail", :dependent => :delete_all
Jean-Philippe Lang
improved issues change history...
r52 end