1 class DiaryComment < ActiveRecord::Base
3 belongs_to :diary_entry
5 validates :body, :presence => true
6 validates :diary_entry, :user, :associated => true
11 RichText.new(self[:body_format], self[:body])
16 md5 << diary_entry_id.to_s
18 md5 << created_at.xmlschema