Add #service_enabled? method to user model

This commit is contained in:
2024-04-04 13:27:52 +03:00
parent 670b2da1ef
commit 819ecf6ad8
6 changed files with 28 additions and 5 deletions
@@ -3,7 +3,7 @@ class Services::MastodonController < Services::BaseController
before_action :require_service_available
def show
@service_enabled = current_user.services_enabled.include?(:mastodon)
@service_enabled = current_user.service_enabled?(:mastodon)
end
private