Class: Lookbook::InspectorController

Inherits:
ApplicationController show all
Includes:
TargetableConcern, WithPanelsConcern, WithPreviewControllerConcern
Defined in:
app/controllers/lookbook/inspector_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from WithPreviewControllerConcern

#preview_controller

Methods included from TargetableConcern

#inspector_data, #lookup_entities, #path_segments, #set_display_options, #set_params, #set_title

Methods inherited from ApplicationController

#index, #not_found

Class Method Details

.controller_pathObject



7
8
9
# File 'app/controllers/lookbook/inspector_controller.rb', line 7

def self.controller_path
  "lookbook/inspector"
end

Instance Method Details

#showObject



11
12
13
14
15
16
# File 'app/controllers/lookbook/inspector_controller.rb', line 11

def show
  raise_not_found("Preview not found") unless @target

  @main_panels = main_panels
  @drawer_panels = drawer_panels
end