1 class DiaryComment < ActiveRecord::Base
3 belongs_to :diary_entry
5 validates_presence_of :body
6 validates_associated :diary_entry
11 RichText.new(read_attribute(:body_format), read_attribute(:body))
16 md5 << diary_entry_id.to_s
18 md5 << created_at.xmlschema