]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/message.rb
Turn on mass assignment protection
[rails.git] / app / models / message.rb
index 053c7a4c0fffaa4382ce6bab58bb6ed73ffef300..0b34160030f980dc41a84f3db1ec47a53627ae10 100644 (file)
@@ -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