Sha256: 6f01b5ec4c4370ecd2bd88e5e696656307c8341bc3d70b2b49aec6a5f30cdd63
Contents?: true
Size: 483 Bytes
Versions: 12
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true class Occams::Admin::Cms::Revisions::SnippetController < Occams::Admin::Cms::Revisions::BaseController private def load_record @record = @site.snippets.find(params[:snippet_id]) rescue ActiveRecord::RecordNotFound flash[:danger] = I18n.t('occams.admin.cms.revisions.record_not_found') redirect_to occams_admin_cms_site_snippets_path(@site) end def record_path edit_occams_admin_cms_site_snippet_path(@site, @record) end end
Version data entries
12 entries across 12 versions & 1 rubygems