X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9deeae3f9630bb85fc420a9eb09edb6318d32f09..917d7324a6f1d3f6256b1a541a912ccee84097d1:/app/models/message.rb?ds=sidebyside diff --git a/app/models/message.rb b/app/models/message.rb index 053c7a4c0..0b3416003 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -9,6 +9,8 @@ class Message < ActiveRecord::Base validates_inclusion_of :message_read, :in => [ true, false ] validates_as_utf8 :title + attr_accessible :title, :body + def digest md5 = Digest::MD5.new md5 << from_user_id.to_s