diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-19 13:31:11 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-19 13:31:11 +1100 |
commit | ddcce35c28042745d14f81b1275eabdc589a71a5 (patch) | |
tree | 5e10ceb8ea1f27a815e5f7c4f71b6bf635598822 /CHANGELOG.md | |
parent | d66f1882ffc5780723bbb38593aac9db590c6efe (diff) | |
download | gitlab-ce-ddcce35c28042745d14f81b1275eabdc589a71a5.tar.gz |
[Rails5] Avoid type casting in uniqueness validator
This commit does two things:
1. Synchronizes `Gemfile.rails5.lock` with the latest changes in `Gemfile`
2. Adds a monkey patch for active record to avoid type casting in uniqueness
validator.
In Rails 5.0 there was introduced a bug [1] that causes to problems like
this:
```
1) API::Users POST /user/:id/gpg_keys/:key_id/revoke when authenticated revokes existing key
Failure/Error: let(:gpg_key) { create(:gpg_key, user: user) }
TypeError:
can't cast Hash
```
This bug was fixed in Rails 5.1 [2].
[1]: https://github.com/rails/rails/pull/23523/commits/811a4fa8eb6ceea841e61e8ac05747ffb69595ae
[2]: https://github.com/rails/rails/pull/24745/commits/aa062318c451512035c10898a1af95943b1a3803
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions