You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/controllers/api/api_base_controller.rb

16 lines
253 B

# frozen_string_literal: true
module Api
class ApiBaseController < ActionController::API
include ActiveStorage::SetCurrent
before_action :authenticate_user!
private
def current_account
current_user&.account
end
end
end