sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

ActiveSupport::Deprecation::Reporting#deprecated_method_warning

Outputs a deprecation warning message

  ActiveSupport::Deprecation.deprecated_method_warning(:method_name)
  # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon}"
  ActiveSupport::Deprecation.deprecated_method_warning(:method_name, :another_method)
  # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (use another_method instead)"
  ActiveSupport::Deprecation.deprecated_method_warning(:method_name, "Optional message")
  # => "method_name is deprecated and will be removed from Rails #{deprecation_horizon} (Optional message)"

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/deprecation/reporting.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--Deprecation--Reporting-deprecated_method_warning-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/deprecation/reporting.rbgit commit -m "better docs for ActiveSupport::Deprecation::Reporting#deprecated_method_warning"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--Deprecation--Reporting-deprecated_method_warning-for-pr

hub pull-request


# Celebrate!