Sha256: a7d93c51edf00c93efb29ec669e60d7bb0ac471238db1854725d477df85b0e79

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

module Spina
  module Admin
    class PageTranslationsController < AdminController
      
      def destroy
        @translation = Spina::Page::Translation.find(params[:id])
        @translation.destroy
        flash[:info] = t("spina.page_translations.deleted")
        redirect_to spina.edit_admin_page_path(@translation.translated_model), status: :see_other
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-2.12.0 app/controllers/spina/admin/page_translations_controller.rb
spina-2.11.0 app/controllers/spina/admin/page_translations_controller.rb