method
rails_gemfile_entry
rails latest stable - Class:
Rails::Generators::AppBase
rails_gemfile_entry()private
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 421
def rails_gemfile_entry
if options.dev?
GemfileEntry.path("rails", Rails::Generators::RAILS_DEV_PATH, "Use local checkout of Rails")
elsif options.edge?
GemfileEntry.github("rails", "rails/rails", edge_branch, "Use specific branch of Rails")
elsif options.main?
GemfileEntry.github("rails", "rails/rails", "main", "Use main development branch of Rails")
else
GemfileEntry.version("rails", rails_version_specifier,
%(Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"))
end
end