method

user_default_branch

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: AppBase
user_default_branch() 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 779
      def user_default_branch
        @user_default_branch ||= capture_command("git config init.defaultbranch").strip.presence || "main"
      end
Register or log in to add new notes.