app/controllers/lookbook/previews_controller.rb in lookbook-1.0.0.beta.8 vs app/controllers/lookbook/previews_controller.rb in lookbook-1.0.0.rc.1

- old
+ new

@@ -1,9 +1,11 @@ module Lookbook class PreviewsController < ApplicationController layout "lookbook/inspector" + helper Lookbook::PreviewHelper + def self.controller_path "lookbook/previews" end before_action :lookup_entities, only: [:preview, :show] @@ -43,19 +45,9 @@ end def show_legacy Lookbook.logger.warn("Legacy URL path detected. These paths are deprecated and will be removed in a future version") redirect_to lookbook_inspect_path params[:path] - end - - # Namespaced preview helpers - - def lookbook_display(key, fallback = nil) - params.dig(:lookbook, :display, key.to_sym) || fallback - end - - def lookbook_data(key, fallback = nil) - Lookbook.data.get(key, fallback) end private def lookup_entities