Flowdock
method

rails_gemfile_entry

Importance_0
rails_gemfile_entry() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/app_base.rb, line 297
      def rails_gemfile_entry
        if options.dev?
          [
            GemfileEntry.path("rails", Rails::Generators::RAILS_DEV_PATH)
          ]
        elsif options.edge?
          [
            GemfileEntry.github("rails", "rails/rails", "6-1-stable")
          ]
        elsif options.master?
          [
            GemfileEntry.github("rails", "rails/rails", "main")
          ]
        else
          [GemfileEntry.version("rails",
                            rails_version_specifier,
                            "Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'")]
        end
      end
Register or log in to add new notes.