Sha256: 20168037489279caa959b5e43598a4c9215cf7462b97fb5de0aeae72fed86642
Contents?: true
Size: 412 Bytes
Versions: 7
Compression:
Stored size: 412 Bytes
Contents
module Pwb class Import::TranslationsController < ApplicationApiController # http://localhost:3000/import/translations/multiple def multiple I18n::Backend::ActiveRecord::Translation.import(params[:file]) return render json: { "success": true }, status: :ok, head: :no_content # redirect_to root_url, notice: "I18n::Backend::ActiveRecord::Translations imported." end end end
Version data entries
7 entries across 7 versions & 1 rubygems