Sha256: 60c939888b0a1af518d5c6bf6de293c59d6845c00e5eb193b86b87baf4f9d977
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
if (cable_config_path = Rails.root.join("config/cable.yml")).exist? say "Enable redis in bundle" uncomment_lines "Gemfile", /gem ['"]redis['"]/ say "Switch development cable to use redis" gsub_file cable_config_path.to_s, /development:\n\s+adapter: async/, "development:\n adapter: redis\n url: redis://localhost:6379/1" else say 'ActionCable config file (config/cable.yml) is missing. Uncomment "gem \'redis\'" in your Gemfile and create config/cable.yml to use the Turbo Streams broadcast feature.' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
turbo-rails-0.7.14 | lib/install/turbo_needs_redis.rb |
turbo-rails-0.7.13 | lib/install/turbo_needs_redis.rb |
turbo-rails-0.7.12 | lib/install/turbo_needs_redis.rb |