rails_admin

https://github.com/railsadminteam/rails_admin

Ruby

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data

Label#to_reference

Returns the String necessary to reference this Label in Markdown

format - Symbol format to use (default: :id, optional: :name)

Examples:

  Label.first.to_reference                                     # => "~1"
  Label.first.to_reference(format: :name)                      # => "~\"bug\""
  Label.first.to_reference(project, target_project: same_namespace_project)    # => "gitlab-ce~1"
  Label.first.to_reference(project, target_project: another_namespace_project) # => "gitlab-org/gitlab-ce~1"

Returns a String

Source | Google | Stack overflow

Edit

git clone [email protected]:railsadminteam/rails_admin.git

cd rails_admin

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Label-to_reference-for-pr


# Commit to git

git add git commit -m "better docs for Label#to_reference"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Label-to_reference-for-pr

hub pull-request


# Celebrate!