SCM branch

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@101 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2006-12-18 17:24:21 +00:00
1 parent e0ee6a17fc
commit fa820c0224
494 files changed
+36449

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
class Comment < ActiveRecord::Base
belongs_to :commented, :polymorphic => true, :counter_cache => true
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
validates_presence_of :commented, :author, :comment
end