Files
docuseal/app/controllers/api/api_base_controller.rb
T
Alex Turchyn 97c462ead2 initial commit
2023-06-01 00:00:58 +03:00

16 lines
253 B
Ruby

# 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