mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 02:32:29 +00:00
10 lines
227 B
Ruby
10 lines
227 B
Ruby
class Api::V1::Accounts::Contacts::BaseController < Api::V1::Accounts::BaseController
|
|
before_action :ensure_contact
|
|
|
|
private
|
|
|
|
def ensure_contact
|
|
@contact = Current.account.contacts.find(params[:contact_id])
|
|
end
|
|
end
|