X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c24c2e481cc6d27e76274ed4e32668a4690a7788..601d28d4b4ccd33ee6893fa2a73e41d57ca02b23:/app/controllers/friendships_controller.rb diff --git a/app/controllers/friendships_controller.rb b/app/controllers/friendships_controller.rb index 75e53368d..0bff13df6 100644 --- a/app/controllers/friendships_controller.rb +++ b/app/controllers/friendships_controller.rb @@ -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