Replace deprecated deliver method with deliver_now
[rails.git] / app / controllers / message_controller.rb
index 4d53943ed9332d7fb87a42e5001337e0df50c093..c7acc90d8f2680438d07573a06e1d30ca774cebc 100644 (file)
@@ -24,7 +24,7 @@ class MessageController < ApplicationController
 
         if @message.save
           flash[:notice] = t 'message.new.message_sent'
-          Notifier.message_notification(@message).deliver
+          Notifier.message_notification(@message).deliver_now
           redirect_to :controller => 'message', :action => 'inbox', :display_name => @user.display_name
         end
       end