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.15.7 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.6 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.5 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.4 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.3 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.2 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.0 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.0.pre.rc3 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.0.pre.rc2 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.15.0.pre.rc1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.14.1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.14.0 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.13.3 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.13.2 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.13.1 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.13.0 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.12.14 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.12.13 config/initializers/hotwire_turbo_monkey_patches.rb
plutonium-0.12.12 config/initializers/hotwire_turbo_monkey_patches.rb