]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/message_controller.rb
Factor out common code for models which deal with geographic points
[rails.git] / app / controllers / message_controller.rb
index 8521d76b3f5cf326604aac6b634e84ab1b411379..52f38e9f6a1d3d4e166423b432b57ea9b6b4a7d7 100644 (file)
@@ -14,6 +14,7 @@ class MessageController < ApplicationController
    
       if @message.save
         flash[:notice] = 'Message sent'
+        Notifier::deliver_message_notification(@message)
         redirect_to :controller => 'message', :action => 'inbox', :display_name => @user.display_name
       end
     end