]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/friendships_controller.rb
Rename Notifier to UserMailer
[rails.git] / app / controllers / friendships_controller.rb
index 75e53368d19f05b49a805a8dc46957e3f6e81b85..0bff13df6efb573c478798eabc3e69bde3c3fc1d 100644 (file)
@@ -21,7 +21,7 @@ class FriendshipsController < ApplicationController
           flash[:warning] = t "friendships.make_friend.already_a_friend", :name => @new_friend.display_name
         elsif friendship.save
           flash[:notice] = t "friendships.make_friend.success", :name => @new_friend.display_name
-          Notifier.friendship_notification(friendship).deliver_later
+          UserMailer.friendship_notification(friendship).deliver_later
         else
           friendship.add_error(t("friendships.make_friend.failed", :name => @new_friend.display_name))
         end