Sha256: 2fa5ae6a60e92817c97eac87c59c37c173f717dfcedcfbf81e2645648bec1f87

Contents?: true

Size: 362 Bytes

Versions: 16

Compression:

Stored size: 362 Bytes

Contents

module Lookbook
  module WithPreviewControllerConcern
    extend ActiveSupport::Concern

    def preview_controller
      return @preview_controller if @preview_controller
      controller = Lookbook::Engine.preview_controller.new
      controller.request = request
      controller.response = response
      @preview_controller ||= controller
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.5.4 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.5.3 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.5.2 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.5.1 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.5.0 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.5 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.4 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.3 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.2 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.1 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.4.0 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.3.4 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.3.3 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.3.1 app/controllers/concerns/lookbook/with_preview_controller_concern.rb
lookbook-1.3.0 app/controllers/concerns/lookbook/with_preview_controller_concern.rb