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

Version Path
occams-1.1.0 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.8 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.7.3 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.7.2 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.7.1 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.7 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.6.1 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.6 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.5 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.4 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.3 app/controllers/occams/admin/cms/revisions/snippet_controller.rb
occams-1.0.2 app/controllers/occams/admin/cms/revisions/snippet_controller.rb