Sha256: adbedfce46cecf602958a5a1a95a1ae0a8acb307a6dbdf0d5fc1119136cfca17

Contents?: true

Size: 503 Bytes

Versions: 75

Compression:

Stored size: 503 Bytes

Contents

# Work around for https://github.com/hotwired/turbo-rails/issues/512
# When ActionCable is not loaded, Turbo breaks boot
Rails.autoloaders.once.do_not_eager_load("#{Turbo::Engine.root}/app/channels") unless defined?(ActionCable)

# Work around for https://github.com/hotwired/turbo-rails/issues/535
Rails.application.config.after_initialize do
  Turbo::Streams::BroadcastStreamJob.class_eval do
    def self.perform_later(stream, content:)
      super(stream, content: content.to_str)
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
plutonium-0.19.8 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.7 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.6 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.5 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.4 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.3 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.2 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.19.0 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.8 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.7 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.6 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.5 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.4 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.3 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.2 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.18.0 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.16.5 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.16.4 config/initializers/hotwire_turbo_monkey_patches.rb