Sha256: a726a2d86ac23c9ce17b8031d5849d97481fc2d7b6a0e53fef0a07c0cd26ce76
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 Bytes
Contents
# frozen_string_literal: true module StimulusReflex class << self def configure yield configuration end def configuration @configuration ||= Configuration.new end alias_method :config, :configuration end class Configuration attr_accessor :on_failed_sanity_checks, :parent_channel, :logging, :middleware DEFAULT_LOGGING = proc { "[#{session_id}] #{operation_counter.magenta} #{reflex_info.green} -> #{selector.cyan} via #{mode} Morph (#{operation.yellow})" } def initialize @on_failed_sanity_checks = :exit @parent_channel = "ApplicationCable::Channel" @logging = DEFAULT_LOGGING @middleware = ActionDispatch::MiddlewareStack.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems