Sha256: 2e4af0fcffa3fa021083116ef52e12b86c7620c4fc8e5f8c34f64a6ab1fb0d81
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 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, :on_new_version_available, :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 @on_new_version_available = :ignore @parent_channel = "ApplicationCable::Channel" @logging = DEFAULT_LOGGING @middleware = ActionDispatch::MiddlewareStack.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-3.5.0.pre1 | lib/stimulus_reflex/configuration.rb |
stimulus_reflex-3.5.0.pre0 | lib/stimulus_reflex/configuration.rb |