Sha256: fd3354c728fe630b151b72a1c7295ec45935eedd02155577a06196635f5919ab

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

module Lookbook
  class InspectorController < ApplicationController
    include TargetableConcern
    include WithPanelsConcern
    include WithPreviewControllerConcern

    layout "lookbook/application"

    def self.controller_path
      "lookbook/inspector"
    end

    def show
      if @target
        begin
          @main_panels = main_panels
          @drawer_panels = drawer_panels
        rescue => exception
          render_in_layout "lookbook/error", layout: "lookbook/application", error: prettify_error(exception)
        end
      else
        show_404
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lookbook-2.0.0.beta.3 app/controllers/lookbook/inspector_controller.rb
lookbook-2.0.0.beta.2 app/controllers/lookbook/inspector_controller.rb
lookbook-2.0.0.beta.1 app/controllers/lookbook/inspector_controller.rb
lookbook-2.0.0.beta.0 app/controllers/lookbook/inspector_controller.rb