summaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 17:11:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 17:11:44 +0000
commitb4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f (patch)
treeab93f1acfb177e1c5cfbd1e36c8ad6c7e2e2821a /app/models/comment.rb
parent3bfaa20c057f97c25d4f8b68334bd4ff0f499887 (diff)
downloadredmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.tar.gz
redmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.zip
replaced deprecated ":dependent => true" statements
git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 1ec7db630..27e5c511e 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,3 +1,20 @@
+# 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 Comment < ActiveRecord::Base
belongs_to :commented, :polymorphic => true, :counter_cache => true
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'