X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c24c2e481cc6d27e76274ed4e32668a4690a7788..8a42bc2eff8563d206615cb8810ad87e9e6e5be2:/app/controllers/friendships_controller.rb?ds=inline 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