method
cable_gemfile_entry
v5.0.0.1 -
Show latest stable
- Class:
Rails::Generators::AppBase
cable_gemfile_entry()protected
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 352
def cable_gemfile_entry
return [] if options[:skip_action_cable]
comment = 'Use Redis adapter to run Action Cable in production'
gems = []
gems << GemfileEntry.new("redis", '~> 3.0', comment, {}, true)
gems
end