2012-03-01 23:25:55 +00:00
|
|
|
class Comment < ActiveRecord::Base
|
|
|
|
|
|
|
|
validates :body, :presence => true
|
|
|
|
validates :asciicast_id, :presence => true
|
|
|
|
validates :user_id, :presence => true
|
|
|
|
|
|
|
|
belongs_to :user
|
2012-04-09 14:46:08 +00:00
|
|
|
belongs_to :asciicast, :counter_cache => true
|
2012-03-01 23:25:55 +00:00
|
|
|
|
2012-03-03 12:09:04 +00:00
|
|
|
attr_accessible :body
|
|
|
|
|
2012-03-01 23:25:55 +00:00
|
|
|
end
|