Sha256: cad57224398f19df3582172c581db1a51caa0b69bd94c37ae5c88177c8b6c166

Contents?: true

Size: 760 Bytes

Versions: 11

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module ActionView
  module Component # :nodoc:
    module Previewable
      extend ActiveSupport::Concern

      included do
        # Set the location of component previews through app configuration:
        #
        #     config.action_view_component.preview_path = "#{Rails.root}/lib/component_previews"
        #
        mattr_accessor :preview_path, instance_writer: false

        # Enable or disable component previews through app configuration:
        #
        #     config.action_view_component.show_previews = true
        #
        # Defaults to +true+ for development environment
        #
        mattr_accessor :show_previews, instance_writer: false
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
actionview-component-1.13.0 lib/action_view/component/previewable.rb
actionview-component-1.12.0 lib/action_view/component/previewable.rb
actionview-component-1.11.1 lib/action_view/component/previewable.rb
actionview-component-1.11.0 lib/action_view/component/previewable.rb
actionview-component-1.10.0 lib/action_view/component/previewable.rb
actionview-component-1.9.0 lib/action_view/component/previewable.rb
actionview-component-1.8.1 lib/action_view/component/previewable.rb
actionview-component-1.8.0 lib/action_view/component/previewable.rb
actionview-component-1.7.0 lib/action_view/component/previewable.rb
actionview-component-1.6.2 lib/action_view/component/previewable.rb
actionview-component-1.6.1 lib/action_view/component/previewable.rb