]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/messages_controller.rb
Merge pull request #4193 from AntonKhorev/lookup-friend
[rails.git] / app / controllers / messages_controller.rb
index fd8cf7cf95f94c7f7780497fd83d3e1a8b561db7..e0b5b05d31900dca9032e070df3ea127fa45cd18 100644 (file)
@@ -1,4 +1,6 @@
 class MessagesController < ApplicationController
+  include UserMethods
+
   layout "site"
 
   before_action :authorize_web
@@ -28,10 +30,7 @@ class MessagesController < ApplicationController
     render :action => "no_such_message", :status => :not_found
   end
 
-  # Allow the user to write a new message to another user. This action also
-  # deals with the sending of that message to the other user when the user
-  # clicks send.
-  # The display_name param is the display name of the user that the message is being sent to.
+  # Allow the user to write a new message to another user.
   def new
     @message = Message.new(message_params.merge(:recipient => @user))
     @title = t ".title"