]> git.openstreetmap.org Git - rails.git/commitdiff
Don't fill in from_display_name for messages - it can be got by
authorTom Hughes <tom@compton.nu>
Fri, 20 Jul 2007 08:07:09 +0000 (08:07 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Jul 2007 08:07:09 +0000 (08:07 +0000)
joining to the user table using from_user_id so is going to be
dropped.

app/controllers/message_controller.rb

index a712931c554f8343a74d1e17e8d281100c126501..26102cc639faa8ef547566e8ce754b741e600fb1 100644 (file)
@@ -14,7 +14,6 @@ class MessageController < ApplicationController
       message.body = body
       message.title = title
       message.to_user_id = params[:user_id]
-      message.from_display_name = to_user.display_name
       message.from_user_id = @user.id
       message.sent_on = Time.now