From 0c9f6b7f889eae7351b087dc4e549f6e82604638 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 29 Aug 2021 17:44:25 +0200 Subject: [PATCH] Copy edits the railties CHANGELOG --- railties/CHANGELOG.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index c9d9e096db..4da2b485e7 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -34,9 +34,9 @@ *Xavier Noria* -* Show Rake task description if command is run with -h. +* Show Rake task description if command is run with `-h`. - Adding `-h` (or `--help`) to a Rails command that's a Rake task, now returns + Adding `-h` (or `--help`) to a Rails command that's a Rake task now outputs the task description instead of the general Rake help. *Petrik de Heus* @@ -88,7 +88,7 @@ *Jean Boussier* -* Remove Rack::Runtime from the default middleware stack and deprecate +* Remove `Rack::Runtime` from the default middleware stack and deprecate referencing it in middleware operations without adding it back. *Hartley McGuire* @@ -115,20 +115,17 @@ *Prateek Choudhary* -* Add benchmark method that can be called from anywhere. +* The new method `Rails.benchmark` gives you a quick way to measure and log the execution time taken by a block: - This method is used as a quick way to measure & log the speed of some code. - However, it was previously available only in specific contexts, mainly views and controllers. - The new Rails.benchmark can be used in the rest of your app: services, API wrappers, models, etc. - - def test - Rails.benchmark("test") { ... } + def test_expensive_stuff + Rails.benchmark("test_expensive_stuff") { ... } end + This functionality was available in some contexts only before. + *Simon Perepelitsa* -* Removed manifest.js and application.css in app/assets - folder when --skip-sprockets option passed as flag to rails. +* Applications generated with `--skip-sprockets` no longer get `app/assets/config/manifest.js` and `app/assets/stylesheets/application.css`. *Cindy Gao*