Module: Hibiki::Rails
- Defined in:
- lib/hibiki/rails.rb,
lib/hibiki/rails/engine.rb,
lib/hibiki/rails/channel.rb,
lib/hibiki/rails/helpers.rb,
lib/hibiki/rails/version.rb,
lib/hibiki/rails/debounce.rb,
lib/hibiki/rails/registry.rb,
lib/hibiki/rails/broadcasts.rb,
lib/hibiki/rails/graph_actor.rb,
lib/generators/hibiki/rails/generator_helpers.rb,
lib/generators/hibiki/rails/phlex/phlex_generator.rb,
lib/generators/hibiki/rails/island/island_generator.rb,
lib/generators/hibiki/rails/install/install_generator.rb,
lib/generators/hibiki/rails/stimulus/stimulus_generator.rb
Overview
Rails glue for hibiki: connection-scoped signal graphs over ActionCable, pushing re-rendered HTML through Turbo Streams.
Defined Under Namespace
Modules: Broadcasts, Channel, Generators, Helpers Classes: Debounce, Engine, GraphActor, Registry
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.registry ⇒ Object
readonly
Process-wide registry of live hibiki channels.
Class Method Summary collapse
-
.default_error_reporter ⇒ Object
Default per-job error sink for GraphActor: the Rails error reporter, so a raising action shows up wherever the app already sends errors.
Class Attribute Details
.registry ⇒ Object (readonly)
Process-wide registry of live hibiki channels.
47 48 49 |
# File 'lib/hibiki/rails/registry.rb', line 47 def registry @registry end |
Class Method Details
.default_error_reporter ⇒ Object
Default per-job error sink for GraphActor: the Rails error reporter, so a raising action shows up wherever the app already sends errors. This is the outer layer of the funnel — a flush error first goes to an app-set Hibiki.error_handler if there is one, and only re-raises into the actor's per-job rescue when there isn't.
15 16 17 |
# File 'lib/hibiki/rails.rb', line 15 def self.default_error_reporter ->(error) { ::Rails.error.report(error, handled: true, source: "hibiki_rails") } end |