app/controllers/concerns/attachable_service_call.rb
##
# Attachable parameters mapped to a format the
# SetReplacements service concern
Attachable parameters mapped to a format the
SetReplacements service concern
Attachable parameters mapped to a format the SetReplacements service concern
def attachment_params
    attachment_params = permitted_params.attachments.to_h
    if attachment_params.any?
      { attachment_ids: attachment_params.values.map(&:values).flatten }
    else
      {}
    end
  end
def attachment_params attachment_params = permitted_params . attachments . to_h if attachment_params . any? { attachment_ids : attachment_params . values . map ( & :values ) . flatten } else { } end end
Attachable parameters mapped to a format the
SetReplacements service concern
Attachable parameters mapped to a format the SetReplacements service concern