mirror of
https://github.com/redmine/redmine.git
synced 2026-03-05 12:01:23 +01:00
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@101 e93f8b46-1217-0410-a6f0-8f06a7374b81
7 lines
237 B
Ruby
7 lines
237 B
Ruby
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
|