Commit 0f4994e5 by Ivan Lan

fix: fix importable rescue_from

parent 638b5eaf
module SimpleController::Importable module SimpleController::Importable
rescue_from TalltyImportExport::Import::RecordNotFountError do |e|
render json: { error: e.message }, status: 422 class << self
def included base
base.rescue_from TalltyImportExport::Import::RecordNotFountError do |e|
render json: { error: e.message }, status: 422
end
end
end end
def upload_excel def upload_excel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment