1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/CHANGELOG.md
Hartley McGuire 7bfcf4b313 Remove Rack::Runtime and deprecate referencing it
Previous discussion: #38412, #38325, 37423e4, 24f9c03

- Rack::Runtime is replaced by FakeRuntime, which is a dummy middleware
  that just passes requests on and cannot be used in middleware operations
- Using Rack::Runtime in middleware operations (relative inserts, moves,
  etc.) throws a deprecation warning and uses FakeRuntime instead
- if an application adds Rack::Runtime explicitly (use, unshift, etc.),
  then the deprecation warning does not happen and FakeRuntime is
  ignored
- docs are updated to no longer reference Rack::Runtime
2021-04-12 14:31:12 -04:00

1.7 KiB

  • Remove Rack::Runtime from the default middleware stack and deprecate referencing it in middleware operations without adding it back

    Hartley McGuire

  • Allow adding additional authorized hosts in development via ENV['RAILS_DEVELOPMENT_HOSTS']

    Josh Abernathy, Debbie Milburn

  • Add app concern and test keepfiles to generated engine plugins.

    Gannon McGibbon

  • Stop generating a license for in-app plugins.

    Gannon McGibbon

  • rails app:update no longer prompts you to overwrite files that are generally modified in the course of developing a Rails app. See #41083 for the full list of changes.

    Alex Ghiculescu

  • Change default branch for new Rails projects and plugins to main.

    Prateek Choudhary

  • Add benchmark method that can be called from anywhere.

    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") { ... }
    end
    

    Simon Perepelitsa

  • Removed manifest.js and application.css in app/assets folder when --skip-sprockets option passed as flag to rails.

    Cindy Gao

  • Add support for stylesheets and ERB views to rails stats.

    Joel Hawksley

  • Allow appended root routes to take precedence over internal welcome controller.

    Gannon McGibbon

Please check 6-1-stable for previous changes.