X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/23b8672bc9a8449f6a89d94b25ea036f4815e4bc..85d17f257c338f668a1d17d9fc62a2f48ec84230:/app/models/diary_comment.rb?ds=inline diff --git a/app/models/diary_comment.rb b/app/models/diary_comment.rb index 0013606d0..b915e027a 100644 --- a/app/models/diary_comment.rb +++ b/app/models/diary_comment.rb @@ -5,6 +5,8 @@ class DiaryComment < ActiveRecord::Base validates_presence_of :body validates_associated :diary_entry + attr_accessible :body + def digest md5 = Digest::MD5.new md5 << diary_entry_id.to_s