diff options
Diffstat (limited to 'app/controllers/account_unfollow_controller.rb')
-rw-r--r-- | app/controllers/account_unfollow_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/account_unfollow_controller.rb b/app/controllers/account_unfollow_controller.rb new file mode 100644 index 000000000..378ec86dc --- /dev/null +++ b/app/controllers/account_unfollow_controller.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class AccountUnfollowController < ApplicationController + include AccountControllerConcern + + before_action :authenticate_user! + + def create + UnfollowService.new.call(current_user.account, @account) + redirect_to account_path(@account) + end +end |