]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/message_controller.rb
Remove nowrap on footer text, to accommodate narrow screens
[rails.git] / app / controllers / message_controller.rb
index 97e892156f097cc1a0cb22d51806ff5ec7efed4e..0ec1c8eb6cadc1d918607252ddd6d1bdeb767824 100644 (file)
@@ -39,7 +39,7 @@ class MessageController < ApplicationController
     message = Message.find(params[:message_id])
 
     if message.to_user_id == @user.id
-      message.update_attribute(:message_read, true)
+      message.update(:message_read => true)
 
       @message = Message.new(
         :recipient => message.sender,