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