]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Replace request.request_uri with request.fullpath
[rails.git] / app / controllers / diary_entry_controller.rb
index 13a8818fb063552a51e6ad13ff589d5aa8bd5859..47c638f3a2b0c68b8517d0fda4d11e4dbe7b0326 100644 (file)
@@ -60,7 +60,7 @@ class DiaryEntryController < ApplicationController
     @diary_comment.user = @user
     if @diary_comment.save
       if @diary_comment.user != @entry.user
-        Notifier::deliver_diary_comment_notification(@diary_comment)
+        Notifier.diary_comment_notification(@diary_comment).deliver
       end
 
       redirect_to :controller => 'diary_entry', :action => 'view', :display_name => @entry.user.display_name, :id => @entry.id