mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
16 lines
253 B
Ruby
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
|