Sha256: b150144b142102476071fdf4ca212334cf52636f6ae12f5b7919658f0802ed4a
Contents?: true
Size: 480 Bytes
Versions: 17
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true class Comfy::Admin::Cms::Revisions::SnippetController < Comfy::Admin::Cms::Revisions::BaseController private def load_record @record = @site.snippets.find(params[:snippet_id]) rescue ActiveRecord::RecordNotFound flash[:danger] = I18n.t("comfy.admin.cms.revisions.record_not_found") redirect_to comfy_admin_cms_site_snippets_path(@site) end def record_path edit_comfy_admin_cms_site_snippet_path(@site, @record) end end
Version data entries
17 entries across 17 versions & 6 rubygems