2021-01-03 14:37:57 +00:00
|
|
|
class Api::V1::Accounts::Contacts::LabelsController < Api::V1::Accounts::BaseController
|
|
|
|
include LabelConcern
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def model
|
2021-01-13 06:45:11 +00:00
|
|
|
@model ||= Current.account.contacts.find(permitted_params[:contact_id])
|
2021-01-03 14:37:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def permitted_params
|
2021-01-13 06:45:11 +00:00
|
|
|
params.permit(:contact_id, labels: [])
|
2021-01-03 14:37:57 +00:00
|
|
|
end
|
|
|
|
end
|