rails/rails — pull request #10682 by fabiokr (2013-05-19 01:48:16+00:00)
Title: Adds a class level #destroy! method, which raises an

4faaa811614b408 instroduces the instance level `#destroy!` method, which raises ActiveRecord::RecordNotDestroyed on failure.

This PR adds a class level `destroy!` method, which delegates to the instance `destroy!` method. That way, one can do `Model.destroy!(id)`.