1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Sergey Alekseev
43366d5b78
fix a typo in 5_2_release_notes.md
[ci skip]
2019-07-24 18:23:15 +03:00
Abhay Nikam
476abd403b Updated links from http to https in guides, docs, etc 2019-03-09 16:43:47 +05:30
Zach Walton
ddad0649c2 add note about idle connection reaper to 5.2 release notes 2019-02-27 09:28:10 -08:00
Paul McMahon
7b9c19d94b Rails guides are now served over https
http links will be redirected to the https version, but still better to
just directly link to the https version.
2018-07-24 11:29:31 +09:00
Yoshiyuki Hirano
b72dc84ba5 [ci skip] Add securing rails app guide link to credential section
* In 5.2 release note, added [securing rails app guide](http://edgeguides.rubyonrails.org/security.html#custom-credentials) link to [credentials section](http://edgeguides.rubyonrails.org/5_2_release_notes.html#credentials).
2018-04-07 02:35:02 +09:00
bogdanvlviv
8b26de85e8
Move CSP info from 5.2 release notes to guide [ci skip]
- Add mention about "nonce".

Related to https://github.com/rails/rails/pull/32222#issuecomment-372268157
2018-03-18 23:25:19 +02:00
bogdanvlviv
b5b179fb57
Fix "Ruby on Rails 5.2 Release Notes" [ci skip]
- Remove
  ```
  *   Namespace error pages' CSS selectors to stop the styles from bleeding
      into other pages when using Turbolinks.
      ([Pull Request](https://github.com/rails/rails/pull/28814))
  ```
  since it was backported to
  `5-1-stable` by 50d5baf7ed
  and
  `5-0-stable` by d1c4a39ed7.

- Remove
  ```
  *   Allow irb options to be passed from `rails console` command.
      ([Pull Request](https://github.com/rails/rails/pull/29010))
  ```
  since it was backported to
  `5-1-stable` by e91b48348c.

- Remove
  ```
  *   Load environment file in `dbconsole` command.
      ([Pull Request](https://github.com/rails/rails/pull/29725))
  ```
  since it was backported to
  `5-1-stable` by 7f9342877a.

- Remove
  ```
  *   Gemfile for new apps: upgrade redis-rb from ~> 3.0 to 4.0.
      ([Pull Request](https://github.com/rails/rails/pull/30748))
  ```
  since it was backported to
  `5-1-stable` by 3789531151.

- Remove
  ```
  *   Fix minitest rails plugin.
      The custom reporters are added only if needed.
      This will fix conflicts with others plugins.
      ([Commit](ac99916fcf))
  ```
  since it was backported to
  `5-1-stable` by caa76956d3.

- Remove
  ```
  *   Add support for compatibility with redis-rb gem for 4.0 version.
      ([Pull Request](https://github.com/rails/rails/pull/30748))
  ```
  since it was backported to
  `5-1-stable` by 3789531151.

- Remove
  ```
  *   Add `action_controller_api` and `action_controller_base` load hooks to be
      called in `ActiveSupport.on_load`.
      ([Pull Request](https://github.com/rails/rails/pull/28402))
  ```
  since it was backported to
  `5-1-stable` by b9a5fd706a.

- Remove
  ```
  *   `driven_by` now registers poltergeist and capybara-webkit.
      ([Pull Request](https://github.com/rails/rails/pull/29315))
  ```
  since it was backported to
  `5-1-stable` by c5dd45119a.

- Remove
  ```
  *   Fallback `ActionController::Parameters#to_s` to `Hash#to_s`.
      ([Pull Request](https://github.com/rails/rails/pull/29630))
  ```
  since it was backported to
  `5-1-stable` by c1014e435d
  and
  `5-0-stable` by 0e71fc3040.

- Remove
  ```
  *   Make `take_failed_screenshot` work within engine.
      ([Pull Request](https://github.com/rails/rails/pull/30421))
  ```
  since it was backported to
  `5-1-stable` by 595a231029.

- Remove
  ```
  *   Fix optimized url helpers when using relative url root.
      ([Pull Request](https://github.com/rails/rails/pull/31261))
  ```
  since it was backported to
  `5-1-stable` by e9b77953a2.

- Remove
  ```
  *   Update `distance_of_time_in_words` helper to display better error messages
      for bad input.
      ([Pull Request](https://github.com/rails/rails/pull/20701))
  ```
  since it was backported to
  `5-1-stable` by 2c97fbf650.

- Remove
  ```
  *   Generate field ids in `collection_check_boxes` and
      `collection_radio_buttons`.
      ([Pull Request](https://github.com/rails/rails/pull/29412))
  ```
  since it was backported to
  `5-1-stable` by 2d8c10a7b1.

- Remove
  ```
  *   Fix issues with scopes and engine on `current_page?` method.
      ([Pull Request](https://github.com/rails/rails/pull/29503))
  ```
  since it was backported to
  `5-1-stable` by 2135daf0d5.

- Remove
  ```
  *   Bring back proc with arity of 1 in `ActionMailer::Base.default` proc
      since it was supported in Rails 5.0 but not deprecated.
      ([Pull Request](https://github.com/rails/rails/pull/30391))
  ```
  since it was backported to
  `5-1-stable` by b2bedb1492.

- Remove
  ```
  *   Add type caster to `RuntimeReflection#alias_name`.
      ([Pull Request](https://github.com/rails/rails/pull/28961))
  ```
  since it was backported to
  `5-1-stable` by f644e7a6fd.

- Remove
  ```
  *   Loading model schema from database is now thread-safe.
      ([Pull Request](https://github.com/rails/rails/pull/29216))
  ```
  since it was backported to
  `5-1-stable` by 02926cfff6.
  and
  `5-0-stable` by 84bcfe5a6a

- Remove
  ```
  *   Fix destroying existing object does not work well when optimistic locking
      enabled and `locking_column` is null in the database.
      ([Pull Request](https://github.com/rails/rails/pull/28926))
  ```
  since it was backported to
  `5-1-stable` by e498052c52.

- Remove
  ```
  *   `ActiveRecord::Persistence#touch` does not work well
      when optimistic locking enabled and `locking_column`,
      without default value, is null in the database.
      ([Pull Request](https://github.com/rails/rails/pull/28914))
  ```
  since it was backported to
  `5-1-stable` by 1e2f63db78.

- Remove
  ```
  *   Previously, when building records using a `has_many :through` association,
      if the child records were deleted before the parent was saved,
      they would still be persisted. Now, if child records are deleted
      before the parent is saved on a `has_many :through` association,
      the child records will not be persisted.
      ([Pull Request](https://github.com/rails/rails/pull/29593))
  ```
  since it was backported to
  `5-1-stable` by a22c39e9cc.

- Remove
  ```
  *   Query cache was unavailable when entering the `ActiveRecord::Base.cache`
      block without being connected.
      ([Pull Request](https://github.com/rails/rails/pull/29609))
  ```
  since it was backported to
  `5-1-stable` by fd6c8cdfe6
  and
  `5-0-stable` by 9f2532bb16.

- Remove
  ```
  *   `Relation#joins` is no longer affected by the target model's
      `current_scope`, with the exception of `unscoped`.
      ([Commit](5c71000d08))
  ```
  since it was backported to
  `5-1-stable` by 3630d6354c.

- Remove
  ```
  *   Fix `unscoped(where: [columns])` removing the wrong bind values.
      ([Pull Request](https://github.com/rails/rails/pull/29780))
  ```
  since it was backported to
  `5-1-stable` by d378fcb254.

- Remove
  ```
  *   When a `has_one` association is destroyed by `dependent: destroy`,
      `destroyed_by_association` will now be set to the reflection, matching the
      behaviour of `has_many` associations.
      ([Pull Request](https://github.com/rails/rails/pull/29855))
  ```
  since it was backported to
  `5-1-stable` by 8254a8be81.

- Remove
  ```
  *   Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`
      to keep the existing select list.
      ([Pull Request](https://github.com/rails/rails/pull/29848))
  ```
  since it was backported to
  `5-1-stable` by 0e8d4edd56.

- Remove
  ```
  *   Ensure `sum` honors `distinct` on `has_many :through` associations.
      ([Commit](566f1fd068))
  ```
  since it was backported to
  `5-1-stable` by c0a1dc2561.

- Remove
  ```
  *   Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`.
      ([Commit](5668dc6b18))
  ```
  since it was backported to
  `5-1-stable` by 87ca68e76e.

- Remove
  ```
  *   MySQL: Don't lose `auto_increment: true` in the `db/schema.rb`.
      ([Commit](9493d45535))
  ```
  since it was backported to
  `5-1-stable` by 8b6e694e5f.

- Remove
  ```
  *   Fix longer sequence name detection for serial columns.
      ([Pull Request](https://github.com/rails/rails/pull/28339))
  ```
  since it was backported to
  `5-1-stable` by af9c1707ad
  and
  `5-0-stable` by 7025b1d8eb.

- Remove
  ```
  *   Fix `bin/rails db:setup` and `bin/rails db:test:prepare` create wrong
      ar_internal_metadata's data for a test database.
      ([Pull Request](https://github.com/rails/rails/pull/30579))
  ```
  since it was backported to
  `5-1-stable` by bb67b5f278
  and
  `5-0-stable` by 60437e6d3c.

- Remove
  ```
  *   Fix conflicts `counter_cache` with `touch: true` by optimistic locking.
      ([Pull Request](https://github.com/rails/rails/pull/31405))
  ```
  since it was backported to
  `5-1-stable` by 5236ddaf35.

- Remove
  ```
  *   Fix `count(:all)` to correctly work `distinct` with custom SELECT list.
      ([Commit](c6cd9a59f2))
  ```
  since it was backported to
  `5-1-stable` by 6beb4de7dd.

- Remove
  ```
  *   Fix to invoke callbacks when using `update_attribute`.
      ([Commit](732aa34b6e))
  ```
  since it was backported to
  `5-1-stable` by 6346683bc5.

- Remove
  ```
  *   Use `count(:all)` in `HasManyAssociation#count_records` to prevent invalid
      SQL queries for association counting.
      ([Pull Request](https://github.com/rails/rails/pull/27561))
  ```
  since it was backported to
  `5-1-stable` by eef3c89e3b.

- Remove
  ```
  *   Fix `count(:all)` with eager loading and having an order other than
      the driving table.
      ([Commit](ebc09ed9ad))
  ```
  since it was backported to
  `5-1-stable` by 6df9b69b23.

- Remove
  ```
  *   PostgreSQL: Allow pg-1.0 gem to be used with Active Record.
      ([Pull Request](https://github.com/rails/rails/pull/31671))
  ```
  since it was backported to
  `5-1-stable` by a9c06f61d5.

- Remove
  ```
  *   Fix that after commit callbacks on update does not triggered
      when optimistic locking is enabled.
      ([Commit](7f9bd034c4))
  ```
  since it was backported to
  `5-1-stable` by aaee10e6e4.

- Remove
  ```
  *   Fix regression in numericality validator when comparing Decimal and Float
      input values with more scale than the schema.
      ([Pull Request](https://github.com/rails/rails/pull/28584))
  ```
  since it was backported to
  `5-1-stable` by 5b1c3e5a8b.
  Note that there was incorrect link to PR,
  original PR is https://github.com/rails/rails/pull/29249.

- Remove
  ```
  *   Fix to working before/after validation callbacks on multiple contexts.
      ([Pull Request](https://github.com/rails/rails/pull/31483))
  ```
  since it was backported to
  `5-1-stable` by 0f7046a7f8.

- Remove
  ```
  *   Fix implicit coercion calculations with scalars and durations.
      ([Pull Request](https://github.com/rails/rails/pull/29163),
      [Pull Request](https://github.com/rails/rails/pull/29971))
  ```
  since it was backported to
  `5-1-stable` by 51ea27c04c,
                  4d82e2aad9.

- Remove
  ```
  *   Fix modulo operations involving durations.
      ([Commit](a54e13bd2e))
  ```
  since it was backported to
  `5-1-stable` by 233fa7eab3.

- Remove
  ```
  *   Return all mappings for a timezone identifier in `country_zones`.
      ([Commit](cdce6a709e))
  ```
  since it was backported to
  `5-1-stable` by 0222ebbe06.

- Remove
  ```
  *   Add support for compatibility with redis-rb gem for 4.0 version.
      ([Pull Request](https://github.com/rails/rails/pull/30748))
  ```
  since it was backported to
  `5-1-stable` by 3789531151.
  Related to #32252.

Related to #32222, https://github.com/rails/rails/pull/32222#discussion_r174256536.
Follow up a489cc81b6.
2018-03-18 15:33:26 +02:00
Yuji Yaginuma
a489cc81b6 Remove entry that was backported to Rails 5.1.3. [ci skip] 2018-03-14 07:55:25 +09:00
bogdanvlviv
7fd6d69af2
Update "Ruby on Rails 5.2 Release Notes" Guide [ci skip]
- Add a description of major features in Rails 5.2.
- Add a reference to Pull Request/Commit to every entry in CHANGELOGs,
  note that some of them combined.
- Add section "Ruby on Rails Guides" with notable changes.
- Note that
  - Skipped this since encrypted secrets are already on the way out.
    ```
    *   Add `rails secrets:show` command.
        ([Pull Request](https://github.com/rails/rails/pull/29695))
    ```
  - Skipped this since it was backported all the way to 5-0-stable.
    ```
    *   Make Rails' test runner work better with minitest plugins.
        ([Pull Request](https://github.com/rails/rails/pull/29572))
    ```

Thanks to everyone who has been working on Rails 5.2! <3
2018-03-13 12:20:51 +02:00
Prathamesh Sonpatki
1ba8412607
Fix the desc for image_alt change [ci skip] 2018-01-07 22:29:13 +05:30
Prathamesh Sonpatki
d14029c117
Added deprecation and removal notes for Action View [ci skip] 2018-01-07 22:07:17 +05:30
Prathamesh Sonpatki
1bb99ae7ad
Added deprecations and removals notes for Action Pack [ci skip] 2018-01-07 21:51:51 +05:30
Prathamesh Sonpatki
4d94b1de16
Added release notes for Action Cable [ci skip] 2018-01-07 21:46:00 +05:30
Prathamesh Sonpatki
b5580e439a
Added Railties deprecations in 5.2 release notes [ci skip] 2018-01-01 01:15:06 +05:30
yuuji.yaginuma
6a902d43c7 Fix guide generation error [ci skip]
Currently, generation of guide is an error in `5_2_release_notes.html`.

```
$ bunele exec rake guides:generate:html
Generating 5_2_release_notes.md as 5_2_release_notes.html
rails/guides/rails_guides/markdown.rb:44:in `dom_id': undefined method `[]' for nil:NilClass (NoMethodError)
	from rails/guides/rails_guides/markdown.rb:106:in `block (2 levels) in generate_structure'
```

It seems that it is an error because there are multiple
`active-storage` anchors.

Since Active Storage is a Major feature, it is unnecessary to show
CHANGELOGs, so remove from `Incompatibilities` section.
2017-12-15 15:52:02 +09:00
Prathamesh Sonpatki
3f89a05c45
Added CSP as major feature [ci skip] 2017-11-27 16:00:52 +05:30
Prathamesh Sonpatki
c30c434527
Added first draft of Rails 5.2 release notes [ci skip] 2017-11-27 15:59:23 +05:30