Module: Hotwire::Spark

Defined in:
lib/hotwire/spark/version.rb,
lib/hotwire/spark/engine.rb,
lib/hotwire-spark.rb

Defined Under Namespace

Classes: Change, Channel, DefaultOptions, Engine, FileWatcher, Installer, Middleware

Constant Summary collapse

VERSION =
"0.1.13"

Class Method Summary collapse

Class Method Details

.cable_serverObject



30
31
32
# File 'lib/hotwire-spark.rb', line 30

def cable_server
  @server ||= Hotwire::Spark::ActionCable::Server.new
end

.enabled?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/hotwire-spark.rb', line 26

def enabled?
  enabled && defined?(Rails::Server)
end

.install_into(application) ⇒ Object



22
23
24
# File 'lib/hotwire-spark.rb', line 22

def install_into(application)
  Installer.new(application).install
end