Sha256: 1e201ad06d56c6cf01d534b68a446cb5e6eab5dab1bac87eea5355c7df84d456

Contents?: true

Size: 475 Bytes

Versions: 17

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

class Comfy::Admin::Cms::Revisions::LayoutController < Comfy::Admin::Cms::Revisions::BaseController

private

  def load_record
    @record = @site.layouts.find(params[:layout_id])
  rescue ActiveRecord::RecordNotFound
    flash[:danger] = I18n.t("comfy.admin.cms.revisions.record_not_found")
    redirect_to comfy_admin_cms_site_layouts_path(@site)
  end

  def record_path
    edit_comfy_admin_cms_site_layout_path(@site, @record)
  end

end

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
comfortable_mexican_sofa-2.0.19 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
PixelForce_ETS-0.0.2 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
PixelForce_ETS-0.0.1 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest2-0.0.4 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest2-0.0.3 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest2-0.0.2 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest2-0.0.1 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest-0.0.1 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcyEtsTest-2.2.19 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
ComfortableMexicanSofa-2.0.18 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
kcy1-1.0 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.18 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.17 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.16 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.15 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.14 app/controllers/comfy/admin/cms/revisions/layout_controller.rb
comfortable_mexican_sofa-2.0.13 app/controllers/comfy/admin/cms/revisions/layout_controller.rb