]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Replace attr_accessible with strong parameters
[rails.git] / app / controllers / notes_controller.rb
index 3eb1ac3f92337f408d662f6d93be6d9034fe2bf6..cab04a0b921a845dd647a8a99bd75f725b074173 100644 (file)
@@ -347,7 +347,7 @@ private
       attributes[:author_ip] = request.remote_ip
     end
 
-    comment = note.comments.create(attributes, :without_protection => true)
+    comment = note.comments.create(attributes)
 
     note.comments.map { |c| c.author }.uniq.each do |user|
       if notify and user and user != @user