Sha256: fb9aefd2d21cfaa51f12e15bdc4574e557ccd13691c3517c5654e7737186e677

Contents?: true

Size: 449 Bytes

Versions: 10

Compression:

Stored size: 449 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.12 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.11 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.10 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.9 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.8 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.7 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.6 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.5 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.4 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb
comfortable_mexican_sofa-2.0.3 app/controllers/comfy/admin/cms/revisions/snippet_controller.rb