Skip to content

Commit

Permalink
Copy edits the railties CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Aug 29, 2021
1 parent 3de4aaf commit 0c9f6b7
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions railties/CHANGELOG.md
Expand Up @@ -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*
Expand Down Expand Up @@ -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*
Expand All @@ -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*

Expand Down

0 comments on commit 0c9f6b7

Please sign in to comment.